Tuesday, December 15, 2015

Digest for adsense-api@googlegroups.com - 2 updates in 1 topic

Ad Reporter <browseliftltd@gmail.com>: Dec 13 09:49AM -0800

We would like to request data from the Adsense API on a daily basis from
our server (with a cron job). This process will grab the daily data and
will store it in our DB for reporting purposes.
We tried
this: https://github.com/googleads/googleads-adsense-examples/tree/master/php-clientlib-1.x/v1.x
But it seems that it is requiring a google account approval (OAuth 2.0) in
the browser and is not designed for server access.
How can we access the API from our server without a browser?
Hope someone can help us understand this,
"Dean Lukies (Adsense API Team)" <adsenseapiadvisor+lukiesd@google.com>: Dec 14 06:17AM -0800

you will need to do the browser auth once on your server then store a
refresh token and use that for all future requests.
Take a look at the bit about STORE_ON_DISK in the readme
On Monday, December 14, 2015 at 9:11:43 AM UTC-5, Ad Reporter wrote:
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to adsense-api+unsubscribe@googlegroups.com.

No comments:

Post a Comment