400 BAD REQUEST on reporting

24 views
Skip to first unread message

Tim Johnson

unread,
Sep 12, 2017, 4:43:23 AM9/12/17
to AdWords API Forum
Hi,
 
I am trying to pull a report by following the reporting basics instructions here.

However, when I try the POST call, I receive a "400 BAD REQUEST" error below is my call:



the headers are:
"developerToken : xxx" 
"Authorization : Bearer xxx" 
"clientCustomerId : xxx" 
"Content-Type : multipart/form-data"

then the body is:
  <selector>
    <fields>CampaignId</fields>
  </selector>
  <reportType>CAMPAIGN_PERFORMANCE_REPORT</reportType>
  <downloadFormat>CSV</downloadFormat>
</reportDefinition>


Can you see anything wrong with this call?  Thanks in advance for the help.

Regards,
Tim

Vincent Racaza (AdWords API Team)

unread,
Sep 12, 2017, 5:31:16 AM9/12/17
to AdWords API Forum
Hi Tim,

You are missing the reportName and dateRangeType in your request. Kindly see this sample report definition so you can emulate on your end.

If the issue still persists after doing the suggestion, kindly provide your latest report definition so I can check.

Thanks,
Vincent
AdWords API Team
Reply all
Reply to author
Forward
0 new messages