Linking Meta Ads as a source

Contents

You can sync data from Meta Ads reports by configuring it as a source in PostHog. The supported reports that can be synced include Adsets, Campaigns, Ads, Adset Report, Campaign Report, and Ad Report, as described here:

Additional reports will be added based on user feedback we receive via our in-app support form.

Requirements

  • A Meta Ads account with permission to access data from accounts you want to sync.

Tip: If you need to find your account ID manually, go to Ads Manager > Menu > Campaigns. You'll see a dropdown next to the title where you can find the ID, or check the URL: https://adsmanager.facebook.com/adsmanager/manage/campaigns?act=YOUR_ID

Configuring PostHog

Connect PostHog to your Meta Ads account using a Meta account. The Meta account must have permission to access data.

  1. In PostHog, go to the Data pipelines tab.
  2. Open the + New drop-down menu in the top-right and select Source.
  3. Find Meta Ads in the sources list and click Link.
  4. Select an existing Meta Ads integration, or create a new one by clicking Connect.
  5. Select the Account ID of the Meta Ads account you want to sync from the dropdown. Each account displays its status (Active, Disabled, or Closed). If your account doesn't appear, you can enter the account ID manually.
  6. (Optional) Add a prefix for the table name.

Configuration

OptionTypeRequired
Meta Ads accountoauthYes
Account IDoauth-account-selectYes
Sync history for insights (days) - applies to AdStats, AdsetStats, CampaignStatsnumberNo

Supported tables

TableDescriptionSync methodIncremental fieldPrimary key
campaigns

An advertising campaign in Meta Ads, defining the objective for its ad sets and ads.

Full refresh
campaign_stats

Daily performance metrics (Insights) at the campaign level in Meta Ads.

Incremental, Full refreshdate_start
adsets

An ad set in Meta Ads, grouping ads that share a budget, schedule, and targeting.

Full refresh
adset_stats

Daily performance metrics (Insights) at the ad set level in Meta Ads.

Incremental, Full refreshdate_start
ads

An individual ad in Meta Ads, pairing a creative with its ad set.

Full refresh
ad_stats

Daily performance metrics (Insights) at the ad level in Meta Ads.

Incremental, Full refreshdate_start

Community questions

Was this page useful?