Skip to content

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:

APIPurpose
YouTube Data API v3YouTube publishing and analytics
YouTube Analytics APIYouTube analytics
Business Profile APIsGoogle Business Profile locations, posts, reviews

Required Scopes

YouTube

ScopePurpose
https://www.googleapis.com/auth/youtube.uploadUpload videos
https://www.googleapis.com/auth/youtube.force-sslManage videos, comments, captions, and ratings

YouTube Analytics Follow-Up

ScopePurpose
https://www.googleapis.com/auth/yt-analytics.readonlyRead analytics

Google Business Profile

ScopePurpose
https://www.googleapis.com/auth/business.manageManage business profile

Callback URLs

text
https://api.tendsocial.com/api/company/social-accounts/callback/YOUTUBE
https://api.tendsocial.com/api/company/social-accounts/callback/GOOGLE_BUSINESS

Set 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

bash
GOOGLE_CLIENT_ID=your_client_id
GOOGLE_CLIENT_SECRET=your_client_secret
  1. Go to APIs & Services → OAuth consent screen
  2. Select External user type (unless G Suite only)
  3. Fill in required fields:
    • App name: TendSocial
    • User support email
    • Developer contact email
  4. Add scopes listed above
  5. Add test users (for development)

Platform Limitations

YouTube

FeatureStatus
Video uploads✅ Supported
Shorts✅ Supported (via standard upload)
Community posts❌ Not available via API
Comments✅ Read/write supported
AnalyticsFollow-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

FeatureStatus
Posts✅ Supported
Photos✅ Supported
Reviews (read)✅ Supported
Reviews (reply)✅ Supported
Q&A⚠️ Limited support

Verification Requirements

For production use with external users:

  1. OAuth consent screen verification required for sensitive scopes
  2. Submit verification request through Google Cloud Console
  3. Provide privacy policy URL
  4. May require security assessment for certain scopes

NOTE

YouTube API scopes are considered "sensitive" and require verification before publishing to external users.

TendSocial Documentation