Thursday, June 6, 2024

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

Scott Brown <scott@sidereel.com>: May 31 08:12AM -0700

Hi,
 
I have enabled Adsense Management API.
 
I have an OAuth 2.0 Client ID for Postman (I have a different one for
https://www.googleapis.com/auth/adwords that is working).
 
I can request new OAuth for scope "https://www.googleapis.com/auth/adsense"
and that works.
 
Yet when I try:
 
https://adsense.googleapis.com/v2/accounts/account_id/adclients/pub-#####/adunits
 
Grabbing pub-###### from our Adsense Account info as Publisher ID
 
 
I get
 
{
"error": {
"code": 403,
"message": "The caller does not have permission",
"status": "PERMISSION_DENIED"
}
}
 
Also seeing 100 errors on the API Services page for the Adsense Management
API.
 
Both my Adsense and Google Cloud /API accounts use the same email / login.
 
What do I need to do to enable permissions to use Adsense API?
 
Thanks,
 
Scott
Ad Sense API <adsenseapi@forumsupport.google>: Jun 05 04:40PM

Hi Scott,
 
Thanks for your message. I'd recommend using the API explorer at https://developers.google.com/adsense/management/reference/rest/v2/accounts/list (the "Try this method" box), to check your user has the appropriate access. There is also sample code for accessing the API, including getting the relevant credentials, at https://developers.google.com/adsense/management/libraries.
 
I hope this helps.
Regards,
Andrew (AdSense API team)
ref:!00D1U01174p.!5004Q02tJDw1:ref
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