Search
Clear search
Close search
Main menu
Google apps
Groups
Sign in
Groups
AdSense API Forum
Conversations
About
Send feedback
Help
AdSense Management API: creating custom channel 403 PERMISSION_DENIED
193 views
Skip to first unread message
Andrei Lozhkin
unread,
May 25, 2023, 5:05:22 PM
5/25/23
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 team,
I have been trying to create a custom channel following the API docs
https://developers.google.com/adsense/management/reference/rest/v2/accounts.adclients.customchannels/create#authorization-scopes
, but get
403 PERMISSION_DENIED
Here is what I tried, In Google Oauth playground
https://developers.google.com/oauthplayground/
with the required scope
https://www.googleapis.com/auth/adsense
send POST request to
https://adsense.googleapis.com/v2/accounts/pub-2838338915309933/adclients/ca-host-pub-2838338915309933/customchannels
with the following body {"displayName": "from-playground-oauth"}, results in 403 error.
The same request URI with the GET method returns a list of custom channels as expected.
Any help would be greatly appreciated!
Goran Aleksic
unread,
May 25, 2023, 5:57:20 PM
5/25/23
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
create, delete and patch methods can only be used "
by projects enabled for the AdSense for Platforms product.
"
AdSense for Platforms
https://developers.google.com/adsense/platforms?hl=en
Did you apply and get project enabled?
(I'm not member of AdSense Team, just regular forum member.)
Andrei Lozhkin
unread,
Jun 9, 2023, 8:49:35 AM
6/9/23
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
Apparently, c
hannel creation via the API is controlled by an allowlist which can be changed only from the Google side as of now.
So if you face the same issue, the only solution is to contact the AdSense API team.
Reply all
Reply to author
Forward
0 new messages