Trying to get report but always just get "ReportDownloadError.MISSING_PARAMETER" "Missing report definition"

791 views
Skip to first unread message

aipa kazuma

unread,
Sep 1, 2016, 5:02:25 AM9/1/16
to AdWords API Forum
Hi We are having a trouble with an adwords API and wondering if you can help us. We called adwords api url 'https://adwords.google.com/api/adwords/reportdownload/v201603'. This api was working until yesterday(2016/08/31), but stop working today. We read the reference pages and tried to figure out, but so far we only got 'api error' in response. Here are the links for these pages. https://developers.google.com/adwords/api/docs/guides/reporting?hl=en https://adwords.google.com/api/adwords/reportdownload/v201603/reportDefinition.xsd The below is the we wrote, ``` API_VERSION='v201603' REQUEST='__rdxml=<reportDefinition xmlns="https://adwords.google.com/api/adwords/cm/'${API_VERSION}'"> <selector> <fields>Ctr</fields> <fields>Date</fields> </selector> <reportName>ACCOUNT_PERFORMANCE_REPORT</reportName> <reportType>ACCOUNT_PERFORMANCE_REPORT</reportType> <dateRangeType>LAST_MONTH</dateRangeType> <downloadFormat>XML</downloadFormat> </reportDefinition>' SIZE=${#REQUEST} echo ${REQUEST} | \ curl -X POST \ -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' \ -H 'Authorization: Bearer '${REFREASH_TOKEN} \ -H 'developerToken: '${DEVELOPER_TOKEN} \ -H 'clientCustomerId: '${ACCOUNT_ID} \ -H 'skipReportHeader: False' \ -H 'skipColumnHeader: False' \ -H 'skipReportSummary: False' \ -H 'includeZeroImpressions: False' \ -H 'Host: adwords.google.com' \ -H 'Content-Length: '${SIZE} \ -H 'Expect: 100-continue' \ -H 'Connection: Keep-Alive' \ --data-urlencode @- \ --verbose \ https://adwords.google.com/api/adwords/reportdownload/${API_VERSION} ``` and after executing the code I get the below in response ``` <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <reportDownloadError> <ApiError> <type>ReportDownloadError.MISSING_PARAMETER</type> <trigger>Missing report definition</trigger> <fieldPath/> </ApiError> </reportDownloadError> ``` I'm hoping if you can give us instruction on how to call report download api. Thanks in advance,

Peter Oliquino

unread,
Sep 1, 2016, 6:12:04 AM9/1/16
to AdWords API Forum
Hi,

Your report definition should look something like the one below :


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/v201607">
  <selector>
    <fields>Ctr</fields>
    <fields>Date</fields>
  </selector>
  <reportType>ACCOUNT_PERFORMANCE_REPORT</reportType>
  <dateRangeType>LAST_MONTH</dateRangeType>
  <downloadFormat>XML</downloadFormat>
</reportDefinition>

Also, I would recommend that you try the samples in the AdWords API client libraries in generating your reports. You can find an example as to how through this link. I would also strongly recommend that you migrate to the latest version (v201607) as the v201603 is due to sunset soon.

Best regards,
Peter
AdWords API Team

aipa kazuma

unread,
Sep 2, 2016, 2:35:44 AM9/2/16
to AdWords API Forum
Thank you advance.

I tried AdWords API client libraries. I was found  cause.

Thank you so much!

2016年9月1日木曜日 19時12分04秒 UTC+9 Peter Oliquino:

Peter Oliquino

unread,
Sep 2, 2016, 3:14:47 AM9/2/16
to AdWords API Forum
Hi Aipa,

You're welcome! Glad to be of help! 
Reply all
Reply to author
Forward
0 new messages