Report definition not recognized when making SOAP request

63 views
Skip to first unread message

JohnA_a

unread,
Sep 11, 2017, 4:11:39 PM9/11/17
to AdWords API Forum

Hi all,

we are trying to download a report from AdWords API and we are getting the error "Report definition was not recognized. Does it exist in service WSDL?"

The xml script we are using is the below:

<?xml version="1.0" encoding="utf-8"?>
  <soap:Header>
      <developerToken>....</developerToken>
      <clientCustomerId>....</clientCustomerId>
      <userAgent>....</userAgent>
    </RequestHeader>
  </soap:Header>
  <soap:Body>
  <selector>
ReportDefinitionService.getReportFields() 
  </selector>
  <reportName>Custom Adgroup Performance Report</reportName>
  <reportType>ADGROUP_PERFORMANCE_REPORT</reportType>
  <dateRangeType>LAST_7_DAYS</dateRangeType>
</reportDefinition>
  </soap:Body>
</soap:Envelope>


Could you please provide us some insight why the above is returning the error?

Vincent Racaza (AdWords API Team)

unread,
Sep 12, 2017, 1:17:31 AM9/12/17
to AdWords API Forum
Hi,

Could you confirm if you are getting the report fields (in Java) in your request? If your goal is just to get the report fields of AdGroup Performance Report, then you can use the example that I linked. However, if your goal is to get the report data of this report type, then you can check this example

Below is a sample report definition in getting a report data with selector:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
     
<reportDefinition
         
xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201708">
         
<ns2:selector>
             
<ns2:fields>AdGroupId</ns2:fields>
             
<ns2:fields>CampaignId</ns2:fields>
             
<ns2:fields>Impressions</ns2:fields>
             
<ns2:fields>Clicks</ns2:fields>
         
</ns2:selector>

         
<ns2:reportName>Ad Group Perf Report Sample</ns2:reportName>
         
<ns2:reportType>ADGROUP_PERFORMANCE_REPORT</ns2:reportType>
         
<ns2:dateRangeType>LAST_7_DAYS</ns2:dateRangeType>
         
<ns2:downloadFormat>CSV</ns2:downloadFormat>
     
</reportDefinition>

Let me know if you have further clarifications.

Thanks,
Vincent
AdWords API Team

JohnA_a

unread,
Sep 12, 2017, 10:30:22 AM9/12/17
to AdWords API Forum
Hi Vincent,
thanks for your reply.

Just to give you a broader view of what we are attempting:
We are actually using a SSIS component that is connecting to AdWords API and making a SOAP request to get ads performance data etc. We are not using any language (php, c#, java, ruby etc) but the integrated capability that this component offers through SSIS to get an xml script and make the call.

Everything around account creation, developer token, access etc are set up and working. 
However when we run the SOAP request that I posted (and also trying your XML example as well), we are getting the below error:

Vincent Racaza (AdWords API Team)

unread,
Sep 13, 2017, 1:18:38 AM9/13/17
to AdWords API Forum
Hi,

Thanks for this information.

Since you are not using our client libraries, please make sure that you followed the XML schema definition in creating a report definition.

If you can confirm that you already followed the guide and still the issue persists, then kindly provide your clientCustomerId and the latest report definition via Reply privately to author option so I can check the issue further.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages