Hourly AdGroup Performance Report

719 views
Skip to first unread message

Tyler

unread,
Mar 9, 2011, 12:26:13 PM3/9/11
to AdWords API Forum
Can anyone provide an example of how to run an AdGroup performance
report for a given time frame at the hour level?

For example, 8pm Wednesday to 8pm Thursday.

Any help or a point in the right direction would be great. I'm
currently using the PHP client library to do things like update bids
but I can't find any examples of how to run an hourly report.

Peter Stannett

unread,
Mar 9, 2011, 1:24:10 PM3/9/11
to AdWords API Forum
Hi Tyler

I'm definitely no expert but I would imagine you might need to run a
cron job?

Would you be willing to show me the code in php for how you wrote your
report?

I'm very new to the api and trying to find a decent example of
reporting in php is quite hard!

Kind regards
Peter

Tyler

unread,
Mar 10, 2011, 8:43:55 AM3/10/11
to AdWords API Forum
I haven't created reports with the API yet.

The only examples in the PHP client library are for getting a list of
existing reports and downloading existing reports. You can't create
hourly reports through the web interface so I'm looking for an example
of creating an hourly adgroup performance report.

Darrin

unread,
Mar 10, 2011, 8:05:23 PM3/10/11
to AdWords API Forum
Tyler... sorry to say, but it can't be done. The most granular you
can get is daily -- midnight-to-midnight in the timezone your account
has been created in. This is true for all the reports, not just
adgroup performance. I've been asking Google for this since 2003.

[Take this next part with a grain of salt as I may be mixing up
companies here and this is based on very old testing...]
The only use that timezone provides in the request is to adjust your
'date' requested from the request timzone to the account timezone.
I.e. if you request a report for 1/1/11 02:00:00EST and your account
is in PST it will return a report for 12/31/10. Other than that, the
time portion of the request is ignored.

Regards,
Darrin

Navneet

unread,
Mar 10, 2011, 8:08:46 PM3/10/11
to AdWords API Forum
I had the same issue but it was resolved with a work around. Download
the data every hour and deduct the previous hour total to get the
delta for that hour.

I hope that make sense.

Thanks
--Navneet

Eric Koleda

unread,
Mar 10, 2011, 9:20:44 PM3/10/11
to adwor...@googlegroups.com
Hi All,

Hourly ad group reports are possible in the UI and the API.  In v13 this was done with the HourlyByDate or HourlyRegardlessDate aggregationType:


With the new reporting system this can be done by adding the HourOfDay field to your ADGROUP_PERFORMANCE_REPORT:


Best,
- Eric Koleda, AdWords API Team

Darrin Skinner

unread,
Mar 11, 2011, 12:45:13 AM3/11/11
to Eric Koleda, adwor...@googlegroups.com
Wow! I like it when I'm totally wrong like this! Thanks for
bringing me up to date Eric.

Darrin

> --
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> Also find us on our blog and discussion group:
> http://adwordsapi.blogspot.com
> http://groups.google.com/group/adwords-api
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
>
> You received this message because you are subscribed to the Google
> Groups "AdWords API Forum" group.
> To post to this group, send email to adwor...@googlegroups.com
> To unsubscribe from this group, send email to
> adwords-api...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/adwords-api?hl=en
>

Tyler

unread,
Mar 16, 2011, 7:39:15 PM3/16/11
to AdWords API Forum
Eric thanks for the feedback. Do you have any idea of where I could
get a working example of how to call this report in PHP?


On Mar 10, 10:20 pm, Eric Koleda <eric.kol...@google.com> wrote:
> Hi All,
>
> Hourly ad group reports are possible in the UI and the API.  In v13 this was
> done with the HourlyByDate or HourlyRegardlessDate aggregationType:
>
> http://code.google.com/apis/adwords/docs/developer/adwords_api_report...
>  http://code.google.com/apis/adwords/docs/developer/adwords_api_report...

Eric Koleda

unread,
Mar 16, 2011, 8:13:42 PM3/16/11
to adwor...@googlegroups.com
Hi Tyler,

There isn't an example for this exact type of report, but there is an example for a KEYWORDS report that you can use as a starting point:


Best,
- Eric

Muhammad Shahzad

unread,
Jul 6, 2017, 4:08:20 AM7/6/17
to AdWords API Forum, eric....@google.com
Can this be achieved using javascript?

Peter Oliquino

unread,
Jul 6, 2017, 5:02:20 AM7/6/17
to AdWords API Forum, eric....@google.com
Hi Muhammad,

If you wish to use Javascript, then I would recommend that you get in touch with the AdWords Scripts team for more information as to how you can achieve this.

Thanks and regards,
Peter
AdWords API Team
Reply all
Reply to author
Forward
0 new messages