Google Platforms Setup
Configure YouTube and Google Business Profile through the Google Cloud Console.
Prerequisites
- Google Cloud Project
- OAuth 2.0 credentials configured
- APIs enabled (see below)
APIs to Enable
In Google Cloud Console → APIs & Services → Library:
| API | Purpose |
|---|---|
| YouTube Data API v3 | YouTube publishing and analytics |
| YouTube Analytics API | YouTube analytics |
| Business Profile APIs | Google Business Profile locations, posts, reviews |
Required Scopes
YouTube
| Scope | Purpose |
|---|---|
https://www.googleapis.com/auth/youtube.upload | Upload videos |
https://www.googleapis.com/auth/youtube.force-ssl | Manage videos, comments, captions, and ratings |
YouTube Analytics Follow-Up
| Scope | Purpose |
|---|---|
https://www.googleapis.com/auth/yt-analytics.readonly | Read analytics |
Google Business Profile
| Scope | Purpose |
|---|---|
https://www.googleapis.com/auth/business.manage | Manage business profile |
Callback URLs
https://api.tendsocial.com/api/company/social-accounts/callback/YOUTUBE
https://api.tendsocial.com/api/company/social-accounts/callback/GOOGLE_BUSINESSSet in: Google Cloud Console → APIs & Services → Credentials → OAuth 2.0 Client → Authorized redirect URIs
The callback URI must exactly match the redirect URI used in the OAuth request. Google returns redirect_uri_mismatch when the URI differs by path, case, host, or scheme. In production, set OAUTH_REDIRECT_BASE_URL=https://api.tendsocial.com.
Environment Variables
GOOGLE_CLIENT_ID=your_client_id
GOOGLE_CLIENT_SECRET=your_client_secretOAuth Consent Screen Setup
- Go to APIs & Services → OAuth consent screen
- Select External user type (unless G Suite only)
- Fill in required fields:
- App name:
TendSocial - User support email
- Developer contact email
- App name:
- Add scopes listed above
- Add test users (for development)
Platform Limitations
YouTube
| Feature | Status |
|---|---|
| Video uploads | ✅ Supported |
| Shorts | ✅ Supported (via standard upload) |
| Community posts | ❌ Not available via API |
| Comments | ✅ Read/write supported |
| Analytics | Follow-up review scope; not requested for launch OAuth |
Partner/content-owner workflows are not part of the launch submission, so https://www.googleapis.com/auth/youtubepartner is not requested.
Google Business Profile
| Feature | Status |
|---|---|
| Posts | ✅ Supported |
| Photos | ✅ Supported |
| Reviews (read) | ✅ Supported |
| Reviews (reply) | ✅ Supported |
| Q&A | ⚠️ Limited support |
Verification Requirements
For production use with external users:
- OAuth consent screen verification required for sensitive scopes
- Submit verification request through Google Cloud Console
- Provide privacy policy URL
- May require security assessment for certain scopes
NOTE
YouTube API scopes are considered "sensitive" and require verification before publishing to external users.