cannot download the report data and the message "MISSING_PARAMETER" appears

118 views
Skip to first unread message

T.M.

unread,
Mar 29, 2016, 8:57:30 AM3/29/16
to AdWords API Forum

I tried to extract the report data via api, however can not download the data and the message "ReportDownloadError.MISSING_PARAMETER". What should I do to troubleshoot this error?


--------------------------------------------------------
HTTP HEADER
Authorization:Bearer xxxxxxxxxxxxxxxxxxxxxxxxxx
clientCustomerId:xxx-xxx-xxxx
Content-Type:application/x-www-form-urlencoded
developerToken:xxxxxxxxxxxxxxxxxxxxxxxx

--------------------------------------------------------

Request content
<reportDefinition xmlns="https://adwords.google.com/api/adwords/cm/v201509">
  <selector>
    <fields>CampaignId</fields>
    <fields>Id</fields>
    <fields>Impressions</fields>
    <fields>Clicks</fields>
    <fields>Cost</fields>
    <predicates>
      <field>Status</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>

--------------------------------------------------------

Shwetha Vastrad (AdWords API Team)

unread,
Mar 29, 2016, 2:18:31 PM3/29/16
to AdWords API Forum
Hi,

For an XML report definition, the POST request body must contain a parameter named "__rdxml" whose value is your XML report definition. Your HTTP POST request should look something like this:

HTTP HEADER:
Authorization:Bearer xxxxxxxxxxxxxxxxxxxxxxxxxx
clientCustomerId:xxx-xxx-xxxx
Content-Type:application/x-www-form-urlencoded
developerToken:xxxxxxxxxxxxxxxxxxxxxxxx

Request Parameters:
__rdxml: <?xml version="1.0" encoding="UTF-8"?>

<reportDefinition xmlns="https://adwords.google.com/api/adwords/cm/v201509">
  <selector>
    <fields>CampaignId</fields>
    <fields>Id</fields>
    <fields>Impressions</fields>
    <fields>Clicks</fields>
    <fields>Cost</fields>
    <predicates>
      <field>Status</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>


Regards,
Shwetha
AdWords API Team.

PS: You might get ReportDefinitionError.INVALID_FIELD_NAME_FOR_REPORT and SelectorError.INVALID_PREDICATE_FIELD_NAME errors, because the fields "Id" and "Status" are not defined for AdGroup Performance Report. Use "AdGroupId" and "AdGroupStatus" instead. 

T.M.

unread,
Mar 29, 2016, 10:19:20 PM3/29/16
to AdWords API Forum
Hello Shwetha,

Even though I added the request parameter "
__rdxml: <?xml version="1.0" encoding="UTF-8"?>",  the message "ReportDownloadError.MISSING_
PARAMETER" does not change. Is there anything I can look into the cause of this message?

Best Regards,
T.M. 


2016年3月29日火曜日 21時57分30秒 UTC+9 T.M.:

Shwetha Vastrad (AdWords API Team)

unread,
Mar 30, 2016, 11:27:06 AM3/30/16
to AdWords API Forum
Hi, 

To clarify, the value of the parameter "__rdxml" is your complete report definition. I apologize if my previous email was not clear. Here, you'll find a complete example of a HTTP POST request showing the report definition enclosed in it. You could also use one of our client libraries which has sample code to download reports. 

Can you try to download the report one more time and if you are still receiving the error, send me the complete HTTP request and response so I can take a look at whats going wrong? Please use "Reply privately to author" button on the right.

Thanks,
Shwetha
AdWords API Team.

T.M.

unread,
Apr 4, 2016, 1:49:11 AM4/4/16
to AdWords API Forum
Hi,

After I retried with the steps which you mentioned in the latest comment. It worked fine.
Thank you for your help.

2016年3月29日火曜日 21時57分30秒 UTC+9 T.M.:

MuniyasamyK

unread,
Jun 2, 2018, 3:12:36 AM6/2/18
to AdWords API and Google Ads API Forum
Reply all
Reply to author
Forward
0 new messages