Skip to main content

Scenario

You’re spending $50K/month across 30+ TikTok creatives but don’t know which ones should be winning. This job pulls all creatives with their TikTok performance metrics (CTR, CVR, CPA), runs Video Analysis on each, then builds a leaderboard that cross-references Mavera’s behavioral scores (hook, emotion, pacing) against actual performance. The result is a predictive scoring model: find high-behavioral-score / low-spend creatives to scale, and low-score / high-spend creatives to kill.

Architecture

Code

Example Output

Error Handling

TikTok’s integrated report endpoint paginates at page_size max 200. For large accounts, loop with page increments until page_info.total_number is exhausted.
Long-form TikTok ads (60s+) may take 45s+ to analyze. The 90s poll loop handles this. For batch jobs with 30+ creatives, parallelize with asyncio.gather or Promise.all.
Behavioral score weights (hook 40%, emotion 30%, cognitive load 30%) are starting points. Calibrate against your own CTR data after 50+ creatives to build a custom regression model.

All TikTok jobs

Video Analysis