How to associate a developer account with an Adsense account?

55 views
Skip to first unread message

sem at become

unread,
Mar 6, 2012, 5:36:08 PM3/6/12
to adsen...@googlegroups.com
I created a project on API console, turned on the Adsense management API, created client id ,secret etc. using  developer account X.

The Adsense account, however, is created using another email address Y.

I want to access the reports of this Adsense account using developer account X.

I am getting the OAuth2 token manually and use it to access the report. I keep getting 404 Not found. I tried few other ways of getting the report I get "User does not have an Adsense account".

Google rep told us X and Y are associated. Are we doing something wrong here?

It's all java.

Silvano Luciani

unread,
Mar 7, 2012, 5:29:54 AM3/7/12
to AdSense API Forum
Hello there,

There is no need to associate a developer account with an AdSense
account. You need the developer account for your application to be
able to use the API, then you can request to the API the data for
users that authorize your application.

So in your case, you need to be logged in as user Y when you authorize
your application, so that you will be able to request data for that
same user.

Check the documentation for OAuth 2.0, you will find very useful
sequence diagrams describing the different OAuth 2.0 authorization
flows:
https://developers.google.com/accounts/docs/OAuth2

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
Reply all
Reply to author
Forward
0 new messages