{"slug":"meta-ads-setup","title":"Meta Ads — Pixel + CAPI Setup and Creative Flywheel","tags":["meta-ads","pixel","capi","creative","attribution","utm"],"agent_summary":"How to configure Meta Pixel + Conversion API for deduplicated attribution, pass UTMs through GHL custom fields, scrape competitor ads, and run the Mark Builds Brands creative flywheel.","trigger_phrases":["meta ads setup","facebook pixel capi","conversion api","meta ads library","utm attribution ghl","creative flywheel","meta ads scraping","mark builds brands"],"runnable":true,"markdown":"\n# Meta Ads — Setup + Creative Flywheel\n\n## Pixel + Conversion API\n- Pixel on site via GTM (browser events)\n- CAPI via server endpoint (FastAPI or Vercel function) for deduped server events\n- Deduplication key: `event_id` sent on both browser + server\n- Events to fire: PageView, ViewContent, Lead (form submit), CompleteRegistration (booked call), Purchase (closed deal)\n\n## Iron Funnels Integration\nAstro perspective-funnel passes UTMs through as GHL custom fields:\n- `utm_source`, `utm_campaign`, `utm_adset`, `utm_ad`, `fbclid`, `gclid`\nMaps to GHL contact custom fields so attribution survives into the CRM.\n\n## Ad Library Scraping\n- **Meta Ads Library API** (official, limited) + **Amplify** or **Foreplay** (paid, richer)\n- Filter: competitor ads running > 30 days = proven winners\n- Download creative, strip branding, log to Notion DB\n\n## Mark Builds Brands Flywheel\n1. Find 5-10 longest-running competitor ads in vertical\n2. Duplicate each as a **concept** (not a swipe — rebuild the hook/angle)\n3. Ad set minimum spend: **1× target CPA × 7 days**\n   - Example: $29 CPA target → $203/wk minimum per ad set\n4. Measure **incremental ROAS** (Meta experiments or GeoLift), not last-click\n5. Kill losers at day 7, iterate winners with 3 new variations\n\n## Creative Production\n- **Seedance 2** — video gen for UGC-style ads\n- **Nano Banana** — image gen (fast, cheap)\n- **Higgsfield** — motion/cinematic b-roll\n- **CapCut Dreamina** — script → avatar video\n- Prefer real UGC > AI when budget allows; AI for concept validation\n","html":"<h1>Meta Ads — Setup + Creative Flywheel</h1>\n<h2>Pixel + Conversion API</h2>\n<ul>\n<li>Pixel on site via GTM (browser events)</li>\n<li>CAPI via server endpoint (FastAPI or Vercel function) for deduped server events</li>\n<li>Deduplication key: <code>event_id</code> sent on both browser + server</li>\n<li>Events to fire: PageView, ViewContent, Lead (form submit), CompleteRegistration (booked call), Purchase (closed deal)</li>\n</ul>\n<h2>Iron Funnels Integration</h2>\n<p>Astro perspective-funnel passes UTMs through as GHL custom fields:</p>\n<ul>\n<li><code>utm_source</code>, <code>utm_campaign</code>, <code>utm_adset</code>, <code>utm_ad</code>, <code>fbclid</code>, <code>gclid</code>\nMaps to GHL contact custom fields so attribution survives into the CRM.</li>\n</ul>\n<h2>Ad Library Scraping</h2>\n<ul>\n<li><strong>Meta Ads Library API</strong> (official, limited) + <strong>Amplify</strong> or <strong>Foreplay</strong> (paid, richer)</li>\n<li>Filter: competitor ads running > 30 days = proven winners</li>\n<li>Download creative, strip branding, log to Notion DB</li>\n</ul>\n<h2>Mark Builds Brands Flywheel</h2>\n<ol>\n<li>Find 5-10 longest-running competitor ads in vertical</li>\n<li>Duplicate each as a <strong>concept</strong> (not a swipe — rebuild the hook/angle)</li>\n<li>Ad set minimum spend: <strong>1× target CPA × 7 days</strong>\n<ul>\n<li>Example: $29 CPA target → $203/wk minimum per ad set</li>\n</ul>\n</li>\n<li>Measure <strong>incremental ROAS</strong> (Meta experiments or GeoLift), not last-click</li>\n<li>Kill losers at day 7, iterate winners with 3 new variations</li>\n</ol>\n<h2>Creative Production</h2>\n<ul>\n<li><strong>Seedance 2</strong> — video gen for UGC-style ads</li>\n<li><strong>Nano Banana</strong> — image gen (fast, cheap)</li>\n<li><strong>Higgsfield</strong> — motion/cinematic b-roll</li>\n<li><strong>CapCut Dreamina</strong> — script → avatar video</li>\n<li>Prefer real UGC > AI when budget allows; AI for concept validation</li>\n</ul>\n"}