Skip to main content

Scenario

Your competitors are running YouTube ads and you only see surface-level view counts. This job searches for competitor ads by brand name, downloads the top results, uploads each to Mavera Assets, and runs Video Analysis to extract message clarity, emotional impact, and brand attribution. Mave then ranks all competitors in a single showdown. The result is a competitive creative intelligence report that tells you exactly where each competitor’s video messaging succeeds or fails — and where your ads can exploit the gaps.

Architecture

Code

Example Output

Error Handling

Each search.list call costs 100 quota units. Three competitors × 1 search = 300 units (3% of daily 10,000). For 10+ competitors, spread searches across hours or use multiple API keys.
Some videos have embedding/download restrictions. If the Mavera asset upload returns an error, skip the video and log the failure. Unlisted videos are not returned by search.list.
YouTube search results vary by region. Add regionCode=US (or your target market) to search.list for consistent results across runs.

YouTube Integration

Video Analysis