Info needed: Ad Hoc Reports for PHP (Authentication and Cross client)

282 views
Skip to first unread message

Havardo

unread,
Feb 2, 2012, 9:53:21 PM2/2/12
to AdWords API Forum
Language: PHP
API: v201109

Hi, I am a newbie here and my apologies if these questions have
already been answered elsewhere.

I have two questions:

1) Regarding authorization:

From http://code.google.com/apis/adwords/docs/guides/reporting.html#adhoc

"Authorization: GoogleLogin auth=AUTH_TOKEN"
"Authorization to download the report. Use the same authToken that's
used for the SOAP request header."
Links to http://code.google.com/apis/adwords/docs/headers.html

In the linked SOAP Headers page, under the section authToken, we find
that authToken is retrieved by using Google ClientLogin API.

On http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html
is categorized as one of the older protocols, and OAuth2.0 is
suggested as a better solution.

Does this mean that authentication for AdHoc reports using Google
ClientLogin API will be unsupported in the not so distant future?
(I dont want to create an application using an authorization that will
be deprecated soon)

2) Implementation of Cross Client Ad Hoc reports in PHP:
Could someone please point me in the direction of a PHP code
implementing cross client Ad Hoc reports?

I am just assuming this is supported since Google is sunseting the
older API versions, and I read somewhere that the older APIs would be
deprecated once v201101 supported cross client Ad Hoc reports.

...and finally, a bonus question:
Where can I find information about reusing Ad Hoc reports each time a
new dataset is required?

Best & thanks!

Håvard

David Torres

unread,
Feb 6, 2012, 12:24:36 PM2/6/12
to adwor...@googlegroups.com
Hi Havard,

I'll try to respond to most of your question,

1) AuthToken even though is a very old authorization protocol will still be supported by AdWords API in the near future and we don't have any plans to remove its support yet. But in case we decide to remove its support, plenty of time will be given before that happens since most of our API users are using this auth method.

2) Unfortunately we don't have an example specific to PHP, but please refer to this blog post for general design ideas on how to implement it.

For the bonus question

AdHoc reports are not stored in our servers, you basically send the report definition and we generate and return the data on-the-fly. My recommendation for you is to store templates of your report definitions on your side.

Best,

-David Torres - AdWords API Team


Reply all
Reply to author
Forward
0 new messages