Closed general

YouTube upload cannot reach a personal gmail channel (API off on the personal app, scopes cannot be combined)

John Lauer · ·closed by Drew Owens

Trying to upload a video to a personal (gmail.com) YouTube channel with adom-google, for AI Flow: Video, which is meant to work for any Adom user.

What happened

  1. The work app is limited to the adom.inc organisation, so a gmail.com account is refused ("Error 403: org_internal").
  2. On the personal app, adding the YouTube scopes to an existing account fails: Google says the scopes "cannot be requested together" with drive.file. YouTube needs its own account with only youtube.upload and youtube. scopes --require youtube.upload --auto-widen builds the union and hits this.
  3. With a YouTube-only account on the personal app, consent works (after Google's "hasn't verified this app" screen, Advanced, Go to adom.cloud) and the brand-account chooser appears, but every call then fails with "API not enabled": the YouTube Data API v3 is switched off in the personal app's Google Cloud project.
  4. auth --url-file without --wait under a short timeout leaves a consent link whose callback answers "Session Expired"; worth a hint to keep the command running.

What would fix it for outside users

  • Enable YouTube Data API v3 in the personal app's Google Cloud project.
  • Give auth a YouTube-only mode (for example --youtube) that requests just the two YouTube scopes, and have --auto-widen say so instead of building a union Google refuses.
  • Get the YouTube scopes verified for the personal app, or outside users see the unverified-app warning.
  • A hint on the brand-account chooser: pick the channel, not just the account.

Until then AI Flow: Video falls back to uploading through YouTube Studio in a pup window, which works but is slow.

0 Replies

Drew Owens closed this ·

Log in to reply.