1

I've tried running the analytics/reporting APIs with my main account (using my local machine's terminal to run python scripts from the YT API Github), and came up with my brand accounts, I end up with an error 403 org_internal when trying to authorize via OAuth authentication flow.

I've also tried following the steps laid out here:

YouTube APIs - Access mutiple youtube channels (Brand Accounts) using Google Admin account

Once I get to step 6, I get the following error:

error 403 org_internal

and of course the request details are all fulfilled; there shouldn't be a problem with authorization (I'm not using a service account), scopes, etc...

I can use my main account for the API authorization.

2nd edit: Here is the OAuth query with the parameters I'm using: https://developers.google.com/youtube/analytics/reference/reports/query?apix_params=%7B%22dimensions%22%3A%22day%22%2C%22endDate%22%3A%222022-04-30%22%2C%22ids%22%3A%22channel%3D%3DMINE%22%2C%22metrics%22%3A%22estimatedMinutesWatched%2Cviews%2Clikes%2CsubscribersGained%22%2C%22sort%22%3A%22day%22%2C%22startDate%22%3A%222022-03-31%22%7D

Yossi S
  • 31
  • 4
  • "I can use at least my main account for the API authorization..." Does this mean you have successfully used API explorer and returned output ( https://developers.google.com/youtube/analytics/reference/reports/query )? I have no idea what the issue is but for that error, try going to `https://console.cloud.google.com/apis/credentials/consent?project=YOUR_PROJECT_NAME` (where "YOUR_PROJECT_NAME" is the name of your project) and make your publishing status "Testing" and user type "External" or (also try "Internal"). I can't remember but you may need to also add your e-mail as a "Test User". – David Erickson May 05 '22 at 22:22
  • I added the OAuth explorer query I'm using, and tried your suggestions, but I'm still getting this error – Yossi S May 08 '22 at 23:22
  • Any ideas @DavidErickson? – Yossi S May 16 '22 at 22:34

0 Answers0