Ryan,
You will need to use the refresh_token method to do this since AdSense is tied to a user/email service accounts wont work. I have posted some php code in the past. Basically you will need to setup an auth page and authenticate once and get the access_token and refresh_token. Store the refresh_token and then use it to request access_tokens with your scripted reports
Eric Haskins
From: adsen...@googlegroups.com [mailto:adsen...@googlegroups.com] On Behalf Of Ryan Brothers
Sent: Friday, January 04, 2013 1:20 PM
To: adsen...@googlegroups.com
Subject: Unattended Reports
I am trying to pull a couple simple AdSense reports to include in a larger report and am not sure how to deal with the OAuth. I was hoping that the service account method I used for the analytics data would work, but I keep getting a 403. It seems that an email confirm is needed to add a user to Adsense, or can I just add my API user and have the service account work? If not, what would be the best way to use the API\OAuth in a way that is completely unattended, it's all running on a backend server, so there's no way to ask a user to enter credentials or hit something on a screen. Thanks for any help.
--
You received this message because you are subscribed to the Google Groups "AdSense API Forum" group.
To view this discussion on the web visit https://groups.google.com/d/msg/adsense-api/-/J-l0Vq9pLJIJ.
To post to this group, send email to adsen...@googlegroups.com.
To unsubscribe from this group, send email to adsense-api...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/adsense-api?hl=en.