Best practice to get day by day statistics on Account, Campaign and Adgroup level

361 views
Skip to first unread message

Amr Abdel-wahab

unread,
Feb 6, 2014, 5:42:32 AM2/6/14
to adwor...@googlegroups.com
Hello,

I am still a newbie in using the adwords api, am using python client library with google app engine basically what I need to do is to get the statistics of a specific period of time day by day to draw a graph of days against clicks or impressions for example on this period

What's the best practice for doing this on the account, campaign and adgroup level.

Many Thanks,
Amr Abdelwahab

Danial Klimkin

unread,
Feb 10, 2014, 5:14:32 AM2/10/14
to adwor...@googlegroups.com
Hello Amr,


Check out the reporting reference here:


You can pull the campaign performance report with "Date", "HourOfDay", "Impressions", and "Clicks" fields. Similarly, see account and ad group performance reports.


-Danial, AdWords API Team.

Amr Abdel-wahab

unread,
Feb 10, 2014, 11:05:33 AM2/10/14
to adwor...@googlegroups.com
Hello Danial,

I am still lost I mean I need to get these data as objects to use it dynamically in google appengine app, and I don't think it's the best practice to make a seperate api call for each day so for example to draw a graph for last month clicks against days I will have to make 30 api calls.

Danial Klimkin

unread,
Feb 11, 2014, 9:52:54 AM2/11/14
to adwor...@googlegroups.com
Hello Amr,


If you add the "Date" field, you can get one row per day, just use CUSTOM_DATE date range. You can get the report in CSV or XML but then it is up to you how to parse it.


-Danial, AdWords API Team.

Amr Abdel-wahab

unread,
Feb 19, 2014, 3:18:07 PM2/19/14
to adwor...@googlegroups.com
Dear Danial,

I keep failing in doing this cause the only option in the reporting is downloading the report to the file system,, I can't get exactly how through python shall I get this data and render it to my html


On Thursday, February 6, 2014 11:42:32 AM UTC+1, Amr Abdel-wahab wrote:

Danial Klimkin

unread,
Feb 20, 2014, 4:27:23 AM2/20/14
to adwor...@googlegroups.com
Hello Amr,


Python lib provides the following method:

DownloadReport(self, report_definition_or_id, return_micros=False,
                     file_path=None, fileobj=None):

You can pass a filename or open handle as file_path. If you omit it, the method will return report contents as a string.


-Danial, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages