Google AdSense API-HELP

68 views
Skip to first unread message

Johnny Hom

unread,
Mar 12, 2012, 2:01:45 PM3/12/12
to AdSense API Forum
Dear Google,

We have been trying to access the Adsense API to automatic get report
data to populate our data bases.

With our Google account, I have used the API console and started an
API Project.
The specific service that I have enabled is the “AdSense Management
API.”
I then created a client ID/client secret pair in the “API Access” tab.

Using the client ID/secret I try to do authentication
https://code.google.com/oauthplayground/
I am able to complete steps 1-3, but when I actually make a request
URI, e.g.
https://www.googleapis.com/adsense/v1.1/accounts
The response comes back
"errors": [
{
"domain": "usageLimits",
"reason": "accessNotConfigured",
"message": "Access Not Configured"
}
],
"code": 403,
"message": "Access Not Configured"
}


Questions:
Why is the access not configured when we have already turned on
“Adsense Management API” as the service we want?
Do we need to do some additional configuration?
Should we be using the “AdSense Host API” instead?

Johnny

Silvano Luciani

unread,
Mar 12, 2012, 2:09:41 PM3/12/12
to AdSense API Forum
Hello Johnny,

are you following our tutorial?
https://developers.google.com/adsense/tutorials/oauth-generic

If not, did you configure the oauth playground to use your own Oauth
credentials?

Cheers,
Silvano

--
Silvano Luciani | Developer Programs Engineer

Google UK Limited
Registered Office: Belgrave House, 76 Buckingham Palace Road, London
SW1W 9TQ
Registered in England Number: 3977902

On Mar 12, 6:01 pm, Johnny Hom <Johnny....@demandmedia.com> wrote:
> Dear Google,
>
> We have been trying to access the Adsense API to automatic get report
> data to populate our data bases.
>
> With our Google account, I have used the API console and started an
> API Project.
> The specific service that I have enabled is the “AdSense Management
> API.”
> I then created a client ID/client secret pair in the “API Access” tab.
>
> Using the client ID/secret I try to do authenticationhttps://code.google.com/oauthplayground/
> I am able to complete steps 1-3, but when I actually make a request
> URI, e.g.https://www.googleapis.com/adsense/v1.1/accounts
Reply all
Reply to author
Forward
0 new messages