Wednesday, March 30, 2016

Digest for adsense-api@googlegroups.com - 2 updates in 1 topic

jhong@appannie.com: Mar 24 01:02AM -0700

Hi,
 
We are trying to access a user's AdSense report, the user has allowed us to
access his AdSense & AdWords and we have the refresh token, we call the
"OAuth2.refreshAccessToken" to get access token, it is OK. Then we use the
access token to call AdSense API, the API version we are using is v1.4, and
language is Nodejs.
When we trying to call adsense.adClients.list(...), it returns
{ [Error: Invalid Credentials]
code: 401,
errors:
[ { domain: 'global',
reason: 'authError',
message: 'Invalid Credentials',
locationType: 'header',
location: 'Authorization' } ] }
 
Our code works well for other users' refresh token, but for this user it
always failed with above error, how it happens and how can we fix it?
 
Thanks,
 
--
*This email may contain or reference confidential information and is
intended only for the individual to whom it is addressed. Please refrain
from distributing, disclosing or copying this email and the information
contained within unless you are the intended recipient. If you received
this email in error, please notify us at legal@appannie.com
<legal@appannie.com>** immediately and remove it from your system.*
"Dean Lukies (Adsense API Team)" <adsenseapiadvisor+lukiesd@google.com>: Mar 29 07:04AM -0700

The error message indicates that the access token you have is not valid for
the AdSense API you are calling.
 
Check that the scope is set corretly and that the originating account has
AdSense access.
 
thanks,
Dean
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to adsense-api+unsubscribe@googlegroups.com.

No comments:

Post a Comment