YouTube API - Access multiple YouTube channels (brand accounts) using a Google Admin account

I need to extract information from a video using YouTube Analytics and Reporting Api.

I have access to multiple YouTube accounts when I sign in to YouTube using my Google account.

Using "Try" to test the API, I can only get the data for the channel as soon as I switch to the brand account that owns this channel, otherwise I get 403 - Forbidden error.

Is there a way to retrieve data using the Google account I use to sign in? Because after creating credentials in the developer console, they will be associated with a Google account, and not with brand accounts.

My google account has a Manager role on brand accounts.

I was looking for the onBehalfOfContentOwner field that will be used in requests, but I do not know how to get this identifier, and I'm not sure if this applies in my situations, since we are talking about bank accounts, correct me if I am wrong.

+3
source share
2 answers

I struggled with this just two days ago. It turns out this is possible, it is just undocumented and works a little different than you expected:

, Google, .

, ( , client_id). , oauth - client_id/client_secret , auth.

:

, !

, .

+3

API YouTube API Google. API- . API YouTube . .

onBehalfOfContentOwner

YouTube , YouTube. , . CMS, YouTube.

YouTube, CMS. , , YouTube.

+2

All Articles