
X Ads
Let AI connect your sources for you
Skip the manual setup — run this in your project and the wizard auto-detects your databases and APIs and connects them to PostHog.

Connect X Ads to PostHog to sync your data into the PostHog data warehouse for analysis and modeling.
Configuration
| Option | Type | Required |
|---|---|---|
X Ads account | oauth | Yes |
Ad account | oauth-account-select | Yes |
Linking X Ads to PostHog
- Go to the Data pipeline page in PostHog
- Click New source and select X Ads
- Fill in the required configuration fields
- Click Next, select the tables you want to sync, and then press Import
Supported tables
| Table | Description | Sync method | Incremental field | Primary key |
|---|---|---|---|---|
campaigns | An X advertising campaign containing line items and funded by a funding instrument. | Full refresh | — | id |
line_items | An ad group within an X campaign, with its objective, targeting, and bid settings. | Full refresh | — | id |
promoted_tweets | An association between an X Post and the line item that promotes it. | Full refresh | — | id |
funding_instruments | A payment or credit arrangement funding X advertising campaigns. | Full refresh | — | id |
media_creatives | A media creative associated with an X advertising line item. | Full refresh | — | id |
campaign_stats | Daily unsegmented X advertising metrics for a campaign, separated by placement. | Incremental, Full refresh | date | entity_id, date, placement |
line_item_stats | Daily unsegmented X advertising metrics for a line item, separated by placement. | Incremental, Full refresh | date | entity_id, date, placement |