Unable to submit/retrieve raw xml report structure through Insomnia Rest client

29 views
Skip to first unread message

Scott G

unread,
Feb 28, 2018, 5:15:07 PM2/28/18
to AdWords API Forum
Hi, 

I'm using the standard xml custom report definition given in the Reporting Basics docs as below:

  <selector>
<fields>CampaignId</fields>
<fields>AdGroupId</fields>
<fields>Impressions</fields>
<fields>Clicks</fields>
<fields>Cost</fields>
<predicates>
  <field>AdGroupStatus</field>
  <operator>IN</operator>
  <values>ENABLED</values>
  <values>PAUSED</values>
</predicates>
  </selector>
  <reportName>Custom Adgroup Performance Report</reportName>
  <reportType>ADGROUP_PERFORMANCE_REPORT</reportType>
  <dateRangeType>LAST_7_DAYS</dateRangeType>
  <downloadFormat>CSV</downloadFormat>
</reportDefinition>

In my understanding, all I need to do is POST this to https://adwords.google.com/api/adwords/reportdownload/v201710 with my headers and it will return the report -
 
Headers are attached to the request as in the image attached. And I was able to retrieve the ReportDefinitionService outline so the authentication is not the issue. 

Just wondering if I'm missing something on this request.

Thanks
2018-02-28 17_11_55-Adwords – Generate Report.png

Peter Oliquino

unread,
Feb 28, 2018, 11:12:51 PM2/28/18
to AdWords API Forum
Hi Scott,

As seen in this example, it seems that you may be missing the "__rdxml: &lt;?xml version="1.0" encoding="UTF-8"?&gt;" in your request. Could you try and apply the additional code and retry your request and see if the issue persists?

Best regards,
Peter
AdWords API Team
Reply all
Reply to author
Forward
0 new messages