AdSense Management API: creating custom channel 403 PERMISSION_DENIED

111 views
Skip to first unread message

Andrei Lozhkin

unread,
May 25, 2023, 1:05:22 PM5/25/23
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, 1:57:20 PM5/25/23
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, 4:49:35 AM6/9/23
to AdSense API Forum
Apparently, channel 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