Groups
Sign in
Groups
AdSense API Forum
Conversations
About
Send feedback
Help
Permission Denied
32 views
Skip to first unread message
Scott Brown
unread,
Jun 5, 2024, 12:32:29 PM
Jun 5
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to AdSense API Forum
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
unread,
Jun 5, 2024, 12:40:31 PM
Jun 5
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to adsen...@googlegroups.com
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
Reply all
Reply to author
Forward
0 new messages