> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dema.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenAI Ads

> Integrating OpenAI Ads with our platform imports the cost and performance of your ChatGPT ad campaigns, enhancing marketing analysis and insights.

### Supported data types

> [card] Marketing cost
>
> Ad spend and performance metrics

> [card] Product cost
>
> Product-level advertising costs

## Prerequisites

* Access to your [OpenAI Ads Manager](https://ads.openai.com) account
* An Ads Manager API key for the ad account you want to import

## Step-by-step integration guide

**1. Navigate to integrations**

Go to **Settings** on our platform, then click on **Integrations**.

**2. Connect OpenAI Ads**

Find OpenAI Ads in the list of integrations and click **Connect** on that row.

**3. Provide your API key**

Unlike the OAuth-based ad connectors, OpenAI Ads connects with an API key. In OpenAI Ads Manager, go to **Settings** → **General** → **API keys**, create a key and enter it in the connection form. If your merchant has more than one storefront, pick the storefront this connection belongs to from the **Storefront** dropdown in the same form.

**4. Choose whether to import product costs**

Each OpenAI Ads API key belongs to exactly one ad account, which we detect from the key when you click **Connect**. Leave **Import product costs** checked (the default) to also import spend per product from your product-feed campaigns.

> [!TIP]
>
> We automatically fetch your history back to **August 31, 2026**.

### Data collected

This integration fetches the following data from your OpenAI Ads account:

* Account information
* Currency and timezone
* Date of data
* Campaign ID, name, status and daily budget
* Ad group ID and name (shown as ad set)
* Ad ID and name
* Ad title and copy (shown as creative headline and body)
* Channel (`chatgpt`) and channel group (`ai_paid`) — assigned automatically
* Country
* Spend, clicks, impressions, conversions, and attributed sales (conversion value)
* Spend, clicks, and impressions per product, matched on the item ID from your product feed

> [!NOTE]
>
> Product costs only exist for **product-feed campaigns**, and are only imported when **Import product costs** is enabled. OpenAI doesn't report conversions or country per product, so product costs have neither.

### Processing

* **Currency:** Costs are imported in the ad account's currency and converted to your merchant currency.
* **Date and timezone:** Costs are dated in the ad account's timezone. Today's numbers are preliminary and are not imported, so costs show up the day after they occur.
* **Country:** Spend, clicks and impressions come from OpenAI's country breakdown. Conversions (purchases) and attributed sales are split across countries in proportion to each country's share of spend.
* **Attribution:** Conversions count attributed purchases (OpenAI `order_created` events) whatever each campaign's conversion goal is, matching other ad connectors. By default they use a **7-day click and 1-day view** window, dated by when the ad was clicked or viewed. To use 7-day click, 14-day or 30-day click with or without 1-day view (30-day click and 1-day view is OpenAI's default), or to date conversions by purchase time, ask your Customer Success Manager.

> [!WARNING]
>
> **Country breakdown and product costs need segmented insights on your OpenAI ad account.** Without it, product costs are skipped. If your storefront is limited to specific countries, **no costs are imported at all**; otherwise costs are imported with an unknown country. Ask your OpenAI contact to enable segmented insights, or contact your Customer Success Manager.

## Multiple storefronts

Each storefront can have one OpenAI Ads connection, and each API key covers one ad account.

* On merchants with a single storefront, the connection is attached to that storefront automatically and the storefront picker is not shown.
* On merchants with multiple storefronts, the connect form asks you to pick which storefront the connection belongs to.
* To connect OpenAI Ads to an additional storefront later, open **Settings** → **Integrations**, click **OpenAI Ads**, then use **Add** to run the connect flow again with that storefront's API key.

Reconnecting an existing connection only asks for a new API key. Disconnecting removes the stored key, so revoke keys you no longer use in OpenAI Ads Manager.

## Data refresh

> [card] Initial import
>
> On the first fetch, we import historical data going back to **2026-08-31**.

> [card] Ongoing updates
>
> Subsequent updates re-fetch the **last 7 days**, so conversions attributed after the click are picked up.

## Finalizing integration

Once your API key is set up, our system automatically begins fetching your OpenAI Ads data. You can then view and analyze this data on our platform to gain insights into your advertising performance.

## Troubleshooting and support

If you encounter any issues during the integration process or have questions regarding your data, please contact our support team for assistance. Common connection errors:

> [accordion] The API key was rejected
>
> Check that you copied the whole key and that it hasn't been revoked in OpenAI Ads Manager, then connect again.

> [accordion] The API key has no ad account
>
> Create the key from inside the ad account you want to import, under **Settings** → **General** → **API keys**.

> [accordion] The API key is scoped to a different ad account
>
> On reconnect, use a key from the ad account that is already connected. To switch to a different ad account, contact support.

> [accordion] No costs, or costs with an unknown country
>
> Segmented insights are probably not enabled on your OpenAI ad account. See the warning under [Processing](#processing).

## Additional resources

For more information on managing your OpenAI Ads account, visit [OpenAI Ads Manager](https://ads.openai.com).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.