Competitor ad research v2: final testing
MIF-1704 · taken over from Alex · tested 26 Nov 2026 on dev data · bulk competitor data, so the cost limits are stricter than for customers' own ads.
What a run costs
Unit costs measured on dev: a full read (Gemini 3.5 Flash-Lite, one call per creative, prompt caching on) is $0.0042; an opening-frame read (Jev labels + Flash-Lite hook text) is $0.00062; ScrapeCreators listing is ~1.05 credits per ad at an assumed $0.00055 per credit. Credits are not in a run's recorded cost_usd.
Paid run cost by competitor size
Estimate from the unit costs; 0.75 creatives per ad listed, first 600 creatives read in full. Shaded band = the $1.50–4 target. The two lines are the same up to 1,500 ads.
Where the money goes
Not included: Lambda, S3 and SQS (not measured). Cache hit rate is not stored per row; the $0.0042 already includes caching. Copying tags between ads that reuse footage is not built: 13% of Speechify's creatives repeat footage (2–42% across advertisers), worth about $0.30 on a 1,000-ad run.
Paid run, measured: Speechify, 1,000 ads
| Run | What happened | Cost |
|---|---|---|
| Attempt 1 | Failed after 1.5 min: ScrapeCreators said "Facebook is blocking us, start from the beginning" and the run retried a dead cursor until it gave up. Fixed. | $0.01 |
| Attempt 2 | Completed, but 846 of 1,003 video downloads failed on the local Mac (its IPv6 route is dead; Node tries IPv6 first). Only 44 ads got a full read. A local problem only: the deployed Lambdas download fine. | $0.91 |
| Attempt 3 | IPv4 forced. 624 of 624 creatives read in full, 0 failed, 8 hook tests found, brief and themes written. 42 min locally at 4 reads at a time (deployed runs do 10; expect ~20 min, not measured). | $2.59 |
Attempt 3 reused the reach data from attempt 2, so it paid only 191 credits. A fresh run pays ~1,043 credits ($0.57): $3.12 all in, against a model estimate of $3.27.
Trial limit: tested end to end
Local API and frontend branches against dev data. Dev company "AAA" was switched to trial with two used slots seeded, then restored to paying ("scale", active) afterwards. No analyser run was started; $0 spent.
| Step | Expected | Result |
|---|---|---|
| Allowance before | 2 used, 1 left | 2 used, 1 left |
| 3rd competitor (Speechify) | allowed, no new run (fresh full-depth run exists) | 200, 3 of 3 used, no run |
| 4th competitor (Notion) | 400 trial_limit, no run | 400 "Your trial includes 3 competitors, and all of them are used. Upgrade to research more." |
| Re-track a used competitor | allowed | 200 |
| Allowance line in the app | "3 of 3 trial competitors used" | shown |
| Add competitor window | upgrade message | "You've used all 3 competitors in your trial. Upgrade to research more." |
| Picking a 4th in the window | upgrade prompt | generic error popup: the frontend has no trial_limit handler |
On screen
Question set: ads-v8, shared with the creative tagger
The asset-bank tagger (MIF-1680) already asks the competitor questions. Its 8 Ball Pool run against human labels (200 ads, one labeller) moved agreement from 75.5% to 82.1%. Only the changes with evidence were carried over.
| Change | Evidence on 8BP | Taken |
|---|---|---|
story_structure.demo_walkthrough must teach; showing the product in use is not a walkthrough | 23% → 69% (94 fixed, 4 broken) | yes |
New options body_format.live_action_activity, game_hook.skill_shot_or_trick | filled gaps where answers fell to "other" | yes |
opening_visual.real_world_scene takes a filmed person not facing camera | filled a gap | yes |
hook_device counts only words addressed to the viewer | 44% → 60% overall, but real-hook recall 8/14 → 5/14; app ads have far more spoken hooks | no |
opening_visual: decide filmed vs rendered first | 74% → 75%, no effect | no |
Caveat: tuned on one advertiser with one labeller; the gain on app and tech ads is unmeasured. The tagger's 720p proxy is not needed here: 0 of 4,719 stored competitor videos exceed Gemini's 14 MB inline limit (median 1.1 MB).
Changes on the branch (uncommitted)
- Merged Alex's #184 onto main after the tagger (#177) landed. The
breakdown.tscollision is resolved: the tagger's one helper moved intocreative_tags/store.ts. - Paid caps: 1,500 ads, 1,700 credits, 600 full reads, $3 analysis (were 5,000 / 5,000 / 600 / $10).
- Poster hashes for older advertisers: ads stored before hashing never got one, so hook tests and footage grouping found nothing (AI Remodel had 0 of 150). They are now refetched once.
- Blocked listing no longer fails the run: on "start your search from the beginning" the pull stops and the run carries on with what it listed.
- Question set ads-v8 (above). Typecheck clean; ads and tagger tests pass.
Still open
| Item | Why it matters | Size |
|---|---|---|
| Deploy on nodejs24.x | Code runs on Node 24 locally; the Lambda packaging is untested. Needs a go-ahead. | small |
Frontend: handle trial_limit | A 4th pick shows a generic error instead of the upgrade window. | small |
| Brief prompt | No raw field names; round reach numbers. | small |
| Invented speech on music-only ads | Gemini 3.8 invented speech on 13 of 50 videos; Flash-Lite on 1, missed it on 4. Not checked on the new questions. | medium |
| Copy tags within footage groups | Saves ~$0.30 per 1,000-ad run; more on games (~40% repeats). | medium |
| Mixed question sets in "Across your competitors" | SnapHome and Home AI are on the old questions and must not be re-run (bench data). | — |
| Accuracy on non-game ads | Agreement figures are model vs model; no human labels on competitor app ads yet. | labelling |
Ticket status
| Item | Status |
|---|---|
| Cost estimates for Alex (per client, per trial, by volume, time) | done |
| 3-competitor trial limit and upgrade prompt, real trial company | done · frontend gap above |
| Hook tests on screen | done |
| Paid-tier caps | done · measured and capped |
| Deploy on nodejs24.x | open |
| Tagger: 720p proxy | not needed |
| Tagger: one vocabulary (MIF-1682) | ported to ads-v8 · tagger still keeps its own copy |
| Tagger: invented-speech check | open |