meta-ad-spy
Input: a brand or Facebook page name (or a page id). Output: a markdown teardown of the brand's active Meta ads: format mix, run length, calls to action, landing domains, hooks used on more than one ad, the longest-running ads, and the newest tests. Usually 3 credits per run.
Run it
python3 scripts/meta_ad_spy.py "Nike" # US, 2 pages of ads
python3 scripts/meta_ad_spy.py "Nike" --country ALL --pages 3
python3 scripts/meta_ad_spy.py "Nike" --page-id 15087023444 # skip the name lookup
python3 scripts/meta_ad_spy.py "Nike" --json # one JSON row per ad
FETCHPROOF_API_KEY must be set. If it isn't, tell the user they can get a key with 100 free credits at https://app.fetchproof.com and stop.
API
- Base URL:
https://api.fetchproof.com, headerx-api-key. GET /v1/facebook/adLibrary/search/companies?query=<name>: finds the page id (1 credit; skipped with--page-id).GET /v1/facebook/adLibrary/company/ads?pageId=<id>&status=ACTIVE&country=US: one page of ads (1 credit). Passcursorfor the next page.- Empty pages, errors and blocked requests cost 0.
How to present it
- Print the script's markdown as-is, then add 3 to 5 bullets of your own reading of it, such as which format dominates, which offer or hook keeps coming back, and what the longest runners have in common.
- Ads that have run 3+ months are the strongest signal that a creative is working. Lead with them.
- If the page match looks wrong (wrong country page, a fan page), say so and rerun with
--page-idfrom the Ad Library URL. - Don't make up spend or results. The Ad Library doesn't publish spend for commercial ads.
