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

Connect Instagram Ads to PostgreSQL

Send Instagram Ads campaigns, reports and insights, ad sets and 1 more report type to PostgreSQL on a schedule. Pick the ad accounts, 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

PostgreSQL schema instagram_ads
  • list_of_campaigns
  • reports_and_insights
  • list_of_ad_sets
  • list_of_ads
Each Instagram Ads report type lands in its own table. You pick the schema and table names.
Trusted by 200K+ users worldwide
Tradezella
Stanford
Webtoon
Getir
Stellar
Anker
ParentSquare
Bac 50
Benzinga
Matterport

How to connect Instagram Ads and PostgreSQL

7 steps. You can preview the Instagram Ads data in Coupler.io before anything reaches PostgreSQL.

Step 1 of 7

Connect Instagram Ads

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

Sign in with Instagram Ads

Step 2 of 7

Choose what to export

Pick the Instagram Ads data you want in PostgreSQL.

Core components

Analytics & reporting

Ad accountsNot setSpecify Ad accounts from where you want to extract data.

Step 3 of 7

Set the report period

Choose the date range the report covers.

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

Step 4 of 7

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 5 of 7

Fine-tune the export

Optional settings for this Instagram Ads export.

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.
FiltersNot setTo set up a filter, you need to use the Graph API syntax. See instructions in the Help Center.

Step 6 of 7

Connect PostgreSQL

Enter your PostgreSQL connection details, then the schema and table for the Instagram Ads data.

Hostdb.example.comHostname, IPv4, or IPv6 address of the server
Port5432Default is 5432
DatabaseanalyticsThe target database name
Tablelist_of_campaignsCreated automatically on the first run
Show 3 more fields Show fewer fields
UsercouplerUser with CREATE and INSERT privileges
Password••••••••••••The database user's password
Schemainstagram_adsCreated automatically if it doesn't exist

Step 7 of 7

Choose a write mode and schedule

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

Write mode

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

Get the most of Instagram Ads to PostgreSQL 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.
Instagram Ads to PostgreSQL questions

4 report types, including Campaigns, Reports and Insights, Ad sets and Ads.

You sign in to Instagram 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. Splitting the data by period is available too.

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

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

Yes, if the database user has CREATE privileges. Coupler.io creates the instagram_ads schema and the list_of_campaigns table on the first run.

Yes. Append adds new rows to list_of_campaigns on each run, while Replace swaps in a fresh copy. With Append, add new Instagram Ads columns to the table yourself before the next run.

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 Facebook Ads, and join or append them before the data reaches PostgreSQL.

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