New account suthorising Adsense account via Management API getting 403 User does not have an AdSense account

186 views
Skip to first unread message

d...@viewex.co.uk

unread,
Feb 9, 2015, 10:54:07 AM2/9/15
to adsen...@googlegroups.com
Hi,

I am testing the AdSense Management API and I've just attempted to create a new Gmail user and add them to my AdSense account
However I'm getting a 403 User does not have an AdSense account error when I'm trying to authorise them in the API.

This happens whether or not they are an admin.

Should they be an admin like integrating DFP?

Can someone help me with this issue?

Cheers
Message has been deleted

galeksic

unread,
Feb 9, 2015, 12:23:04 PM2/9/15
to adsen...@googlegroups.com
@Dean Lukies - Is that necessary for AdSense Management API?

I'm using Management API as user with standard level access:

Only with wrong credentials I'm getting:

{
 
"error": {
 
"errors": [
   
{
   
"domain": "global",
   
"reason": "noAdSenseAccount",
   
"message": "User does not have an AdSense account."
   
}
 
],
 
"code": 403,
 
"message": "User does not have an AdSense account."
 
}
}

So before I start implementing I always first check credentials here:

(If it doesn't work from there, then it won't work from my box.)

@d...@viewex.co.uk - Can you login to www.google.com/adsense as user you just added to your AdSense account. Not sure, I think that account must be validated / verified first.

Dean Lukies (Adsense API Team)

unread,
Feb 9, 2015, 3:34:07 PM2/9/15
to adsen...@googlegroups.com
Hi,
Quite correct; removed the post as it was Host API info.
Sorry.


If it lets you list your account you should be good to go, if not please include the full error.

thanks,
Dean 

d...@viewex.co.uk

unread,
Feb 10, 2015, 6:56:35 AM2/10/15
to adsen...@googlegroups.com
Hi,

The endpoint hitting page returns the same error. Just the same 403 User does not have an AdSense account.

I've invited the new user and accepted the invite and can access the normal UI from the new user, I just can't do any API calls.

Confused,

Dan

Dean Lukies (Adsense API Team)

unread,
Feb 10, 2015, 10:31:59 AM2/10/15
to adsen...@googlegroups.com
Resolved this offline with Dan but wanted to post so folks know what happened; it can take up to 24 hours for a new account to get API access.

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