How to get adword campaign history graph values with Adword API?

232 views
Skip to first unread message

ValentijnDH

unread,
Mar 3, 2017, 4:28:26 AM3/3/17
to AdWords API Forum
Hello,

Is it possible to get the history graph values of an adword campaign with the Adword API? If so, what do I have to use in the Adwords API to get those history values?

Thank you.

Shwetha Vastrad (AdWords API Team)

unread,
Mar 3, 2017, 11:54:30 AM3/3/17
to AdWords API Forum
Hi,

Are you looking to get the historical performance data of your campaigns? If so, you need to use AdWords API to download a Campaign Performance Report which includes all statistics aggregated at the campaign level. The DownloadCriteriaReportWithSelector Java example demonstrates how to download a Criteria Performance Report. You can modify this as needed to download a Campaign Performance Report.

If you are looking for change history instead, you should use CustomerSyncService to retrieve the changed entities for a customer account or campaign in a given date range. The GetAccountChanges Java example shows how to retrieve the account changes in the last 24 hours. Example code in other languages is available here

Regards,
Shwetha Vastrad
AdWords API Team.
Message has been deleted

ValentijnDH

unread,
Mar 8, 2017, 10:49:58 AM3/8/17
to AdWords API Forum
DownloadCriteriaReportWithSelector is the right direction. But I think DownloadCriteriaReportWithAwql is doing what I want. But they kinda give the same thing. I am not sure if I am getting the right values, because I am currently developing in a test account. And it seems that this class doesn't give me that much with a test account? But it seems that it can give history values/reports from Google Adwords. 

I hope somebody can clear this up a bit? About what DownloadCriteriaReportWithSelector or DownloadCriteriaReportWithAwql is supposed to give as data?

Thank you.

Op vrijdag 3 maart 2017 17:54:30 UTC+1 schreef Shwetha Vastrad (AdWords API Team):

Shwetha Vastrad (AdWords API Team)

unread,
Mar 8, 2017, 5:06:30 PM3/8/17
to AdWords API Forum
Hi,

The DownloadCriteriaReportWithSelector example downloads a report using an XML report definition where as the DownloadCriteriaReportWithAwql example downloads a report using an AWQL query. Both these examples download a Criteria Performance Report. You need to replace the report definition or the query as needed to download different report types. Since you are developing with a test account which doesn't serve impressions, your reports will not have any metrics. You should set the includeZeroImpressions header to true to include zero impression rows in the downloaded report. You can set the data range as needed to get the data within a certain duration.

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