Connect your data to Claude in 1 minute. No code needed Try it now

Connect Facebook Ads to Supabase

Send Facebook Ads campaigns, activities, reports and insights and 7 more report types to Supabase on a schedule. Pick the ad accounts, pick columns, choose metrics and dimensions, filter by date and add your own filters. Refresh as often as every 15 minutes.

capterra
star star star star star

4.9/5

Supabase schema facebook_ads
  • list_of_campaigns
  • list_of_activities
  • reports_and_insights
  • list_of_sponsored_leads
  • list_of_ad_creatives
  • 5 more report types
Each Facebook Ads report type lands in its own table. You pick the schema and table names.
Trusted by 200K+ users worldwide
Spotify
fifty-five
Al Jazeera
InPost
Visma
REHAU
Getir
Printify
Macromill
Stanford
Médecins Sans Frontières
Greenpeace
Save the Children
San Diego FC

How to connect Facebook Ads and Supabase

8 steps. You can preview the Facebook Ads data in Coupler.io before anything reaches Supabase.

Step 1 of 8

Connect Facebook Ads

Sign in to Facebook Ads and authorize Coupler.io. There's no API key to copy.

Sign in with Facebook Ads

Step 2 of 8

Choose what to export

Pick the Facebook Ads data you want in Supabase.

Core components

Show 2 more report types Show fewer report types

Analytics & reporting

Leads generation

Ad accountsNot setSpecify Ad accounts from where you want to extract data.
BusinessesNot setSpecify the Facebook Businesses (Business Manager accounts) to pull invoices from.
PagesNot setSpecify the pages you want to extract data from.

Step 3 of 8

Set the report period

Choose the date range the report covers.

Start dateAny date
End dateAny date
Split data by periodNot setBy default, the report will present a daily breakdown for the specified analytics period.

Step 4 of 8

Filter by date

Limit the export to records in a date range.

Billing start dateAny dateSpecify the start of the billing period to filter invoices by (the 1st of the month being invoiced). Defaults to 6 months ago if not set.
Billing end dateAny dateSpecify the end of the billing period to filter invoices by. Defaults to today if not set.
Issue start dateAny dateThe earliest issue date to include. Set this field to filter by issue date instead of billing period — the billing period filter is then ignored.
Issue end dateAny dateSpecify the latest issue date to filter by.

Step 5 of 8

Pick metrics and dimensions

Choose what to measure and how to break it down.

Metrics and dimensionsNot setSelect one or more values for “metrics and dimensions”, e.g. “Account currency”, “Account id”, “Account name”, “Ad id”, “Ad name”.
BreakdownsNot setSelect a value for “breakdowns”, e.g. “Age, Gender”, “Country, Region”, “Comscore Markets”.

Step 6 of 8

Fine-tune the export

Optional settings for this Facebook Ads export.

Lead generation formsNot setSelect specific forms to fetch leads from. Leave blank to fetch leads from all forms.
Attribution settingsNot setChoose how attribution settings should be applied: inherit them from your ad account or ad group, or specify them manually for full control.Learn more
Action attribution windowsNot setSelect the time frame for attributing conversions to your ads.
Ad creative columnsNot setSelect one or more values for “ad creative columns”, e.g. “Creative name”, “Body”, “Title”, “Call to action type”, “Messenger sponsored message”.
Show 2 more fields Show fewer fields
Updated sinceAny dateSelect a date to display ads updated since then.
FiltersNot setTo set up a filter, you need to use the Graph API syntax. See instructions in the Help Center.

Step 7 of 8

Connect Supabase

Enter the connection details from your Supabase project's Connect panel, then the schema and table for the Facebook Ads data.

Hostaws-0-eu-central-1.pooler.supabase.comSession pooler host from the Supabase Connect panel
Port5432Default is 5432
DatabasepostgresUsually postgres
Tablelist_of_campaignsCreated automatically on the first run
Show 3 more fields Show fewer fields
Userpostgres.abcdefghijklmnopPooler user looks like postgres.[project-ref]
Password••••••••••••Database password, not an API key
Schemafacebook_adsA dedicated schema keeps it out of the Data API

Step 8 of 8

Choose a write mode and schedule

Every run either replaces or appends the data in Supabase. Run it as often as every 15 minutes.

Write mode

Each run deletes the existing rows in list_of_campaigns and loads fresh Facebook Ads data.

Get the most of Facebook Ads to Supabase integration

Gather data icon

Gather data

Export data from numerous apps and sources into a single destination. Blend data from different apps to get a single source of truth.
Understand data icon

Understand data

Preview, transform, sort, and filter data for better clarity in just a few clicks in the Coupler.io interface. Take your data analytics to the next level.
Automate data icon

Automate data

Access data that is always up to date by enabling the automatic data refresh on a schedule as often as every 15 minutes and using triggered automation.
Act on data icon

Act on data

Visualize your data by quickly connecting to data visualization and BI tools. Build insightful dashboards in a breeze and make better decisions.
Facebook Ads to Supabase questions

10 report types, including Campaigns, Activities, Reports and Insights, Sponsored Leads and Ad creatives.

You sign in to Facebook Ads and authorize Coupler.io. There's no API key to copy.

Yes. Set the start date and end date to cover the period you need. You can also filter by billing date or issue date. Splitting the data by period is available too.

Yes. Pick from 299 columns in 10 groups, and only those reach Supabase.

Yes. Pick the metrics and dimensions you need, and split results by any of 144 breakdowns.

Yes. Add filter conditions in the source settings to keep only the Facebook Ads records you need.

Yes. On the first successful run, Coupler.io creates the facebook_ads schema and the list_of_campaigns table if the database user has the privileges to do so, and detects column types from the Facebook Ads data.

Its writes aren't governed by RLS policies, and the tables it creates have RLS turned off. Keep Facebook Ads data in a schema your app doesn't expose through the Data API.

On a schedule you choose, from monthly down to every 15 minutes, depending on your Coupler.io plan.

Yes. Add more sources to the same data flow, for example Google Ads or Google Analytics 4, and join or append them before the data reaches Supabase.

High five for scrolling till the very end!
See you in the app!