Greetings!

If you really want to try all of this with curl, you can do this. Please 
replace the <INSERT...> with your own information. The first command gets you 
the access token, which you insert into the second command. The second gets you 
the report you needed.

curl --data 
"refresh_token=<INSERT_REFRESH_TOKEN>&client_id=<INSERT_CLIENT_ID>&client_secret=<INSERT_CLIENT_SECRET>&grant_type=refresh_token"
 -X POST "https://www.googleapis.com/oauth2/v3/token";

curl --header "Authorization: Bearer <INSERT_ACCESS_TOKEN>" --header 
"developerToken: <INSERT_DEVELOPER_TOKEN>" --header "clientCustomerId: 
<INSERT_CLIENT_CUSTOMER_ID_WITH_DASHES>" --header "clientSecret: 
<INSERT_CLIENT_SECRET>" 
https://adwords.google.com/api/adwords/reportdownload/v201809 --data 
"__rdquery=SELECT CampaignId, AdGroupId, Impressions, Clicks, Cost FROM 
AD_PERFORMANCE_REPORT WHERE AdGroupStatus IN [ENABLED, PAUSED] DURING 
LAST_7_DAYS&__fmt=CSV"

Even though it's possible to do this on the command line, I do agree with 
Danica that if you can get that client library working, it's a lot more 
friendly.

Cheers,
Nadine Wang, Google Ads API Team
ref:_00D1U1174p._5001UZZ3XI:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/CxaS7000000000000000000000000000000000000000000000Q97JSM00JUo-7dNDQsiaQKTDJ2BNgw%40sfdc.net.

Reply via email to