Skip to main content
⚠️ IMPORTANT: This is a READ-ONLY validation tool. Safe to call multiple times. 🎯 What This Tool Does:
  • Validates videos for Google Ads PMAX or TikTok campaigns
  • For PMAX: Validates YouTube video (privacy, duration, embeddable)
  • For TikTok: Validates public video URL is accessible
  • Returns metadata (title, duration, privacy, thumbnail)
DOES NOT upload videos - user must already have video uploaded:
  • PMAX: Video must be on YouTube (public or unlisted)
  • TikTok: Video must be on public hosting (Google Drive, Vimeo, etc.)
Parameters:
  • video_url_or_id (required): YouTube URL/ID (PMAX) or public video URL (TikTok)
  • platform (required): ‘pmax’ or ‘tiktok’
For PMAX: Accepts YouTube formats: Validates:
  • Video exists and is accessible
  • Privacy is Public or Unlisted (NOT Private)
  • Embeddable is enabled
  • Duration ≥10 seconds (PMAX requirement)
Returns:
  • Video title
  • Duration
  • Privacy status
  • Thumbnail URL
  • Video ID
For TikTok: Accepts public video file URLs: Validates:
  • URL is accessible (HTTP 200)
  • Content-Type is video/* (when available)
Returns:
  • URL validation status
  • Content-Type
  • File size (if available)
Execution Time: 1-3 seconds (YouTube Data API call or HTTP request) When to Use:
  • BEFORE creating a campaign with videos
  • To verify video meets platform requirements
  • To get video metadata (title, duration)
Example Usage:
Error Handling:
  • Private videos: Clear error asking user to change privacy to Public/Unlisted
  • Short videos (<10s for PMAX): Error with duration requirement
  • Invalid URLs: Error with accessibility details
  • Not embeddable: Error asking user to enable embedding

OpenAPI

/api-reference/openapi.json post /api/v1/tools/validate_video/execute