We got "User does not have an AdSense account"

503 views
Skip to first unread message

d...@viewex.co.uk

unread,
Mar 26, 2015, 12:35:59 PM3/26/15
to adsen...@googlegroups.com
After authorising their AdSense account using PHP OAuth (NOT service) we got an error that "User does not have an AdSense account.".

This makes no sense logically.

Here's a backtrace

Error calling GET https://www.googleapis.com/adsense/v1.4/accounts: (403) User does not have an AdSense account.

#0 /var/www/viewex/vendor/google/apiclient/src/Google/Http/REST.php(44): Google_Http_REST::decodeHttpResponse(Object(Google_Http_Request))
#1 /var/www/viewex/vendor/google/apiclient/src/Google/Client.php(556): Google_Http_REST::execute(Object(Google_Client), Object(Google_Http_Request))
#2 /var/www/viewex/vendor/google/apiclient/src/Google/Service/Resource.php(195): Google_Client->execute(Object(Google_Http_Request))
#3 /var/www/viewex/vendor/google/apiclient/src/Google/Service/AdSense.php(1106): Google_Service_Resource->call('list', Array, 'Google_Service_...')


Can someone help here please
Cheers


Dean Lukies (Adsense API Team)

unread,
Mar 26, 2015, 12:51:43 PM3/26/15
to adsen...@googlegroups.com
Hi,

Try testing the account to make sure that it works outside of code. Go into incognito mode and use the APIs explorer:


Authenticate and try to fetch accounts list

If that works, make sure you are connecting to the API using that account 

let me know if you still have problems?

thanks,
Dean

d...@viewex.co.uk

unread,
Mar 27, 2015, 11:49:05 AM3/27/15
to adsen...@googlegroups.com
It's not our account (it belongs to a client), but we have found that this happens with one of our accounts if the user that authenticated has been invited as an administrator (i.e. is not the user that *started* the account..
So this may be the reason.

How would we allow anyone on the account to allow this?

Dean Lukies (Adsense API Team)

unread,
Mar 27, 2015, 11:52:10 AM3/27/15
to adsen...@googlegroups.com
Hi there,

Did you wait for 24 hours; is it working now?

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