OpenAI Ads
This page contains the setup guide and reference information for the OpenAI Ads source connector.
Prerequisites
- An OpenAI Ads advertiser account
- An Advertiser API key for that account
Setup guide
Step 1: Create an API key
- Log in to Ads Manager with a user that has access to the ad account.
- Open the Settings page and create a new Advertiser API key.
- Copy the key. Each key is scoped to one ad account. To replicate several ad accounts, create one key per account and set up one source per account.
The spend_limit_windows stream needs an ad account on postpaid invoice billing and an API key with permission to manage billing for that account (see Account spending limits). If the API answers 403, the stream returns no records, the sync continues, and the sync log shows the API's message.
The conversion_pixels stream requires pixel management to be enabled for the ad account. If the API returns 404 because pixel management is not enabled, the stream returns no records and the sync continues. Contact your OpenAI partner representative to enable pixel management (see API partner setup).
For more information, see OpenAI's quickstart.
Step 2: Set up the OpenAI Ads connector in Airbyte
For Airbyte Cloud
- Log into your Airbyte Cloud account.
- In the left navigation bar, click Sources. In the top-right corner, click + New source.
- On the Set up the source page, select OpenAI Ads from the Source type dropdown.
- Enter a name for the OpenAI Ads connector.
- Enter the API Key.
- (Optional) Enter the Start Date in YYYY-MM-DD format, as a date in the ad account's time zone. Report data before this date will not be replicated. The default is 2026-02-01. OpenAI keeps a limited history of report data, so older days may no longer be available. See Report Tables.
- (Optional) Enter the End Date in YYYY-MM-DD format, as a date in the ad account's time zone. Report data after this date will not be replicated. OpenAI rejects report requests that end in the future, so if you leave this empty or enter a date later than the current date in UTC-12, report streams sync through the current date in UTC-12. The newest day in the account's time zone can arrive a day late, and a later sync picks it up.
- (Optional) Enter the Lookback Window in days, from 0 to 90. Conversions are requested with a 30-day click window and OpenAI needs at least one day to process conversions, so keep the default of 32 or more when you sync conversions streams. See Lookback window.
- (Optional) Enter the Number of concurrent workers, from 1 to 20. Values below 2 run with 2 workers. The default is 3.
- Click Set up source.
For Airbyte Open Source
- Navigate to the Airbyte Open Source dashboard.
- In the left navigation bar, click Sources. In the top-right corner, click + New source.
- On the Set up the source page, select OpenAI Ads from the Source type dropdown.
- Enter a name for the OpenAI Ads connector.
- Fill in the fields as described for Airbyte Cloud above.
- Click Set up source.
Supported sync modes
The OpenAI Ads source connector supports the following sync modes:
| Feature | Supported? |
|---|---|
| Full Refresh Sync | Yes |
| Incremental Sync | Yes |
| Replicate Incremental Deletes | No |
| SSL connection | Yes |
| Namespaces | No |
Supported Streams
Main Tables
These streams read the current entities in full on every sync. Start Date, End Date, and Lookback Window apply only to report streams and do not filter these tables.
| Stream | Primary key | Sync modes | Notes |
|---|---|---|---|
| ad_account | id | Full Refresh | The ad account the key belongs to |
| campaigns | id | Full Refresh | |
| ad_groups | id | Full Refresh | Listed per campaign, campaign_id added to each record |
| ads | id | Full Refresh | Listed per ad group, ad_group_id added to each record |
| conversion_event_settings | id | Full Refresh | Conversion definitions of the account |
| conversion_pixels | id | Full Refresh | Conversion data sources referenced by conversion_event_settings |
| custom_audiences | id | Full Refresh | Custom audiences of the account |
| spend_limit_windows | window_id | Full Refresh | Date range spend limits. Postpaid invoice billing and billing permission required |
Report Tables
All report tables are built on the insights endpoint with daily granularity in the account timezone. Each row is one entity and one day. Field names follow the API's response keys.
| Stream | Primary key | Sync modes | Level and breakdown |
|---|---|---|---|
| ad_account_insights | ad_account_id, readable_time | Full Refresh, Incremental | Ad account |
| campaign_insights | campaign_id, readable_time | Full Refresh, Incremental | Campaign |
| ad_group_insights | ad_group_id, readable_time | Full Refresh, Incremental | Ad group |
| ad_insights | ad_id, readable_time | Full Refresh, Incremental | Ad |
| campaign_insights_by_country | campaign_id, country_name, readable_time | Full Refresh, Incremental | Campaign by country |
| campaign_insights_by_device | campaign_id, device_type, readable_time | Full Refresh, Incremental | Campaign by device type |
| campaign_insights_by_platform | campaign_id, platform, readable_time | Full Refresh, Incremental | Campaign by platform |
| campaign_insights_by_product | campaign_id, product_feed_id, item_id, readable_time | Full Refresh, Incremental | Campaign by product feed item |
| campaign_conversions | entity_id, date | Full Refresh, Incremental | Attributed conversions per campaign and day |
| ad_group_conversions | entity_id, date | Full Refresh, Incremental | Attributed conversions per ad group and day |
| ad_conversions | entity_id, date | Full Refresh, Incremental | Attributed conversions per ad and day |
Every insights stream requests all attribute fields the API allows at its level, for its own entity and every level above it: account id, name, url and budgets; campaign id, name, description, status, start and end time and budgets; ad group id, name, description and status; ad id, name, title, copy, link, status and review status. Attributes that are unset for an entity are omitted from the row. The metrics are impressions, clicks, spend, ctr, cpc, cpm, with the same names at every level and for every segment. Days on which an entity had no impressions are not returned, so missing days mean zero delivery, as long as they are inside OpenAI's retention: the most recent 365 days for daily insights and about 30 days for campaign_insights_by_product (see Historical availability). The connector cannot read older days whatever the Start Date, so a refresh or a Full Refresh | Overwrite sync keeps only what OpenAI still has. The API's own row id is kept on the record but is not the primary key, because it embeds a query plan token that changes with the requested fields.
The conversions streams come from the conversions insights endpoint and return conversions, click_through_conversions, view_through_conversions, order_created_attributed_sales and order_created_attributed_sales_currency per entity (entity_id) and date, at campaign, ad group and ad level. Unlike the insights endpoint, this endpoint returns a row for every entity and every day of the requested range, zeros included, also for days before the entity was created. The connector keeps these rows as delivered. In Full Refresh mode, and in Incremental mode for entities that already exist at the first sync, each entity's daily series starts at the Start Date. In Incremental mode, a campaign, ad group or ad that is first listed after the initial sync is read from the stream's saved cursor minus the Lookback Window (by default about 32 days before the last date the previous sync reached), so its series starts there and not at the Start Date. The same late start can apply to entities that a sync had not reached yet when it failed while listing campaigns, ad groups or ads. After such a failure, refresh the conversions stream to read every entity from the Start Date. Set the Start Date to when the account began advertising to avoid rows for days before that; rows before an entity's own creation can be removed downstream with created_at from the campaigns, ad_groups and ads streams.
Lookback window
The connector requests conversions with a 30-day click window, a 1-day view window and ad-event time (attribution_window_days: 30, view_through_attribution_window_days: 1, attribution_time_basis: ad_event_time), which are also OpenAI's defaults. A conversion is reported on the day of the ad interaction it is attributed to, so the conversions of a past day keep changing for up to 30 days. attribution_window_days on a conversion event setting is a different field and does not set the report window. OpenAI also needs at least one day to process conversions, and spend can be finalized later than impressions and clicks (see Data Freshness & Retention). On every sync, incremental report streams re-read the data inside the lookback window and update those rows. The default of 32 days covers the 30-day click window plus 2 days of processing. Use the Incremental | Append + Deduped sync mode so the updated rows replace the earlier ones. Lower the window only if you sync delivery metrics without conversions and want fewer requests.
Performance considerations
The OpenAI Ads API allows 600 requests per minute per endpoint and 1,200 requests per minute overall. OpenAI enforces these limits per ad account and per IP address. The connector keeps its own requests under 600 per minute, runs streams with the configured number of workers, and retries on 429 and 5xx responses with exponential backoff, or after the wait in the Retry-After header when the API sends one.
Insights are requested in 14 day slices with up to 2,000 rows per page and cursor pagination beyond that. The conversions endpoint has no pagination cursor and returns HTTP 413 when a response would exceed 2,000 summary rows, so the connector asks it for one entity and one 14 day slice at a time (at most 14 rows per request). This makes the conversions streams the most request-intensive part of the connector: each incremental sync issues about three requests per campaign, ad group and ad (a 32 day lookback covers three 14 day slices), and the first sync one request per entity for every 14 days between the start date and the end date. An account with 5,000 ads needs roughly 15,000 requests per incremental sync for ad_conversions alone, about 25 minutes at the rate limit, and writes one row per ad per day. If that is too much, deselect ad_conversions and ad_group_conversions and keep campaign_conversions, which needs three requests per campaign.
Amounts on insights rows (spend, cpc, cpm, and the budget columns such as campaign_budget_daily) are in the account currency. Fields ending in _micros on the entity and spend limit streams are in micros (1,000,000 micros equal one unit of currency). An ad_account_budget_lifetime of 1,000,000,000 means no lifetime limit is set.
IP allow list
If you use Airbyte Cloud and your organization restricts access to specific IPs, add the Airbyte Cloud IP addresses to your allow list.
Reference
Config fields reference
Changelog
Expand to review
| Version | Date | Pull Request | Subject |
|---|---|---|---|
| 0.1.12 | 2026-11-17 | 93307 | Update dependencies |
| 0.1.11 | 2026-11-16 | 89598 | Request conversions with explicit attribution settings (30-day click, 1-day view, ad-event time), reuse cached campaigns and ad groups in dependent streams, and correct the conversions docs |
| 0.1.10 | 2026-11-16 | 91299 | Prepare for certification: declare missing fields, run at least 2 workers, enable acceptance tests |
| 0.1.9 | 2026-11-10 | 91652 | Update dependencies |
| 0.1.8 | 2026-11-03 | 90660 | Update dependencies |
| 0.1.7 | 2026-10-27 | 90026 | Update dependencies |
| 0.1.6 | 2026-10-21 | 88396 | Declare missing documented schema fields |
| 0.1.5 | 2026-10-21 | 88394 | Skip conversion_pixels when pixel management is not enabled |
| 0.1.4 | 2026-10-21 | 88392 | End report date ranges at the current date in UTC-12 |
| 0.1.3 | 2026-10-20 | 89337 | Update dependencies |
| 0.1.2 | 2026-10-13 | 88750 | Update dependencies |
| 0.1.1 | 2026-10-09 | 88389 | Add mocked unit tests |
| 0.1.0 | 2026-10-08 | 86351 | Initial release by @alexgreen496 |