Playbooks / Pull Meta ad insights with hook rate and net revenue per ad

Pull Meta ad insights with hook rate and net revenue per ad

Pull Meta ad insights with hook rate and net revenue per ad

Ready now

Supabase edge functions pull Meta Marketing API ad-level insights (hook rate, holds, results) into meta_ads tables and join sales to ad IDs for net cash per ad; the Meta Ads tab adds CSV upload and ad comments.

Kit

No separate kit. The playbook is self-contained.

You need

AccountWhyFree or paidPlan
Meta Business Suite (Pixel, Conversions API, Marketing API)Facebook and Instagram ads. The funnel fires Pixel events, the attribution system sends server-side Conversions API events, the Meta Ads tab pulls ad-level insights, and social posting reaches your Pages through Zernio.FreeBusiness account is free; you pay for ad spend only. Requires a verified business and a domain verification TXT record for the Pixel.
SupabasePostgres database, auth (dashboard logins), row level security, Realtime pulse, Edge Functions and pg_cron for every dashboard, the attribution tables, booking alerts and the Brain state.Free tier availablePro (25 USD/mo) for anything a client logs into. The free tier pauses a project after 7 days without traffic and caps an org at 2 active projects; a paused free project took three client dashboards offline at once (a project log).
HYROSPaid attribution for a client running ads; the Channel Attribution tab proxies the HYROS API. Timo built a first-party clone so new clients can skip it.PaidPaid only, priced on ad spend (hundreds of dollars a month). Only needed if the client already runs it; otherwise use the first-party attribution system.

What you bring

  • Your ad platform read token
  • Your ad exports from Ads Manager, and your ad account ids
  • Your definition of which action counts as a result

The steps

  1. Create the System User token and confirm access
  2. Create the tables
  3. Deploy the sync function and run a dry run
  4. Write for real and schedule it hourly
  5. Deploy the revenue function
  6. Build the tab with the decision rules
  7. Verify against ground truth, not against the page

Get the full playbook

Part of: Get your database sorted