Accounts: list return error

34 views
Skip to first unread message

Fedot Praslov

unread,
Oct 29, 2014, 5:10:34 PM10/29/14
to adsen...@googlegroups.com
We trying to get list of user's accoutns via call to Accounts: list and get the following error:
{ "domain": "global", "reason": "noAdSenseAccount", "message": "User does not have an AdSense account." }

The request is authorized with OAuth2 (using https://www.googleapis.com/auth/adsense.readonly scope).
We albe to get into the AdSense dashboard without issues, as well as retrieve single account info using Account: get (by providing accountId pub-7629510217955731).

Is this some sort of API issue on Google's side or we doing something wrong?


Dean Lukies (Adsense API Team)

unread,
Nov 3, 2014, 9:18:53 AM11/3/14
to adsen...@googlegroups.com
Hi Fedot,

in this case, I think you may be authenticating with the wrong account.

Please bring up a fresh 'incognito' browser window (ctrl-shift-N in chrome) , go to https://developers.google.com/adsense/management/v1.4/reference/accounts/list#try-it and log in as the Adsense user.

Can you run the sample on that page?

If you can, then that is the account you must authenticate with in your code.

If that doesn't work, or you have more questions, let me know.

thanks,
Dean
Reply all
Reply to author
Forward
0 new messages