I got bad request while try get report download, how fix it?

95 views
Skip to first unread message

mais trum

unread,
Apr 30, 2020, 1:18:07 AM4/30/20
to AdWords API and Google Ads API Forum
hello team, 

I have a problem when i try to post request to get reporting my ads in test account,

i try to request simple data reporting like get id of my campaign in my test account, can i get my test account data with adwords API?
i build my own request without use existing lib adwords, because i build API Call in delphi, i try my request in post man, i have follow this HTTP Post Request :

POST /api/adwords/reportdownload/v201809 HTTP/1.1
Host: adwords.google.com
User-Agent: curl, gzip
Accept: */*
Accept-Encoding: gzip
Authorization: Bearer [Enter OAuth 2.0 access token here]
developerToken: [Enter developerToken here]
clientCustomerId: [Enter clientCustomerID here]
Content-Length: 182
Expect: 100-continue
Content-Type: multipart/form-data;
 
Parameters:
__fmt: CSV
__rdquery: SELECT CampaignId, AdGroupId, Impressions, Clicks, Cost 
FROM ADGROUP_PERFORMANCE_REPORT 
WHERE AdGroupStatus IN [ENABLED, PAUSED] DURING LAST_7_DAYS

but i got bad Request, i try it use TidHTTP in delphi, and try it in postman too, can you tell me is there mistake from my post request?
Thanks,

Google Ads API Forum Advisor Prod

unread,
Apr 30, 2020, 12:33:34 PM4/30/20
to maist...@gmail.com, adwor...@googlegroups.com
Hello,

Thanks for reaching out! Yes, you can get test data via AdWords API, but keep in mind that impressions or cost data will often be zeroed out in reports because test accounts do not serve actual ads. Upon looking at your post request, it looks like you did not enter the following required fields:
  • Authorization
  • developerToken
  • clientCustomerId
Did you ensure that you have followed all of the steps mentioned in this guide for making a proper API request? If you have followed the guide and are still experiencing issues, please provide your CID as well as the complete detailed request and response so that I can further investigate. When providing this information, make sure that you "Reply privately to author."

Thanks,
Danica Calusin, Google Ads API Team

ref:_00D1U1174p._5001UaSwc8:ref
Reply all
Reply to author
Forward
0 new messages