To retrieve Google AdWords data from KEYWORDS_PERFORMANCE_REPORT

28 views
Skip to first unread message

API_DCH

unread,
May 22, 2018, 12:17:00 PM5/22/18
to AdWords API and Google Ads API Forum
Hi,

I am using following code, which looks like the standard code that has been discussed in this forum and documentation. But I am having trouble in retrieving google AdWords data using KEYWORD_PERFORMANCE_REPORT.
Can you please provide me the url to which this xml request should be submit. Please see the following code and xml body and let me know if you find something not right. I have data on google AdWords account for the period which I am querying.
Do you have any sample code that I can use to understand how to retrieve data from "KEYWORD_PERFORMANCE_REPORT". 


<?xml version="1.0" encoding="utf-8"?>
<soap:Header>
<developerToken>{{User::varDevToken}}</developerToken>
<clientCustomerId>{{User::varClientId}}</clientCustomerId>
<userAgent>ZappySys SSIS PowerPack v1</userAgent>
</RequestHeader>
</soap:Header>
<soap:Body>
<reportDefinition
<selector>
<fields>CampaignId</fields>
<fields>AdGroupId</fields>
<fields>CampaignName</fields>
<fields>AdGroupName</fields>
<fields>Criteria</fields>
<fields>Status</fields>
<fields>SystemServingStatus</fields>
<fields>Impressions</fields>
<fields>Clicks</fields>
<fields>Cost</fields>
<fields>AverageCpc</fields>
<fields>Ctr</fields>
<fields>TrackingUrlTemplate</fields>
<fields>FinalUrls</fields>
<fields>AveragePosition</fields>
<fields>SearchImpressionShare</fields>
<fields>QualityScore</fields>
<fields>AccountCurrencyCode</fields>
<fields>AccountDescriptiveName</fields>
<predicates>
<field>Clicks</field>
<operator>GREATER_THAN</operator>
<values>0</values>
</predicates>
<dateRange>
<min>20180101</min>
<max>20180401</max>
</dateRange>
</selector>
<reportName>Report</reportName>
<reportType>KEYWORDS_PERFORMANCE_REPORT</reportType>
<dateRangeType>CUSTOM_DATE</dateRangeType>
<downloadFormat>CSV</downloadFormat>
</reportDefinition>
</soap:Body>
</soap:Envelope> 


Thanks
Sam

Dhanya Sundararaju (AdWords API Team)

unread,
May 22, 2018, 4:10:59 PM5/22/18
to AdWords API and Google Ads API Forum
Hi Sam,

Please refer this section of guide for the HTTP request URL. You can refer this sample code in java to run a report type. For other programming languages, please refer this section of the guide. Could you please reply back with your client customer id if you still face issues?

Regards,
Dhanya, AdWords API Team
Reply all
Reply to author
Forward
0 new messages