# ChatGPT Ads Setup

Source: https://tenjin.com/docs/chatgpt-ads-setup/

Does your app page show Attribution and Callbacks tabs? You’re on the Legacy view. Expand Legacy view steps at the bottom of this page, or [switch to the Modern view](<https://tenjin.com/docs/manage-user/#channel-setup-interface>).


## How to set up ChatGPT Ads campaigns


### 1. Add ChatGPT Ads


On your app’s Channels tab, click Integrate channels, select ChatGPT Ads and click Continue.

[Image: ChatGPT Ads selected in Integrate channels]

### 2. Get your Pixel ID and Conversions API key from OpenAI


In OpenAI Ads Manager, go to Tools → Conversions:


- Pixel ID: create or reuse a data source and copy the ID shown under its name. Use a Web data source, as OpenAI does not have a mobile data source yet.

- Conversions API key: click the key icon at the top right to create one.

- This is not the Ads API key under Settings → General → API Keys. That key is for spend data only and will reject postback requests.


### 3. Fill in the setup card


1. Enter the Pixel Id.

2. Enter the Conversions API Key as ` Bearer YOUR_API_KEY ` (the word Bearer, a space, then the key).

3. Under Tracking links, type a campaign name and click Add. Tenjin creates the campaign right away and adds an @ID to the end of its name.

4. Click Integrate.

[Image: ChatGPT Ads setup card with a campaign added under Tracking links]

Optional on the same card: the install postback is on by default; turn on others such as IAP, and connect your OpenAI Ads account under Ad accounts to import spend. For all options, see [Integrate Channels and Postbacks](<https://tenjin.com/docs/integrate-channels-and-postbacks/>).


### 4. Name your OpenAI campaign


In OpenAI Ads Manager, name your campaign with the full Tenjin campaign name, including the @ID at the end (for example, ` ChatGPT Campaign 1 @emThwyaYctlgPqACQb73nS `). Only the @ID has to match exactly. Do this before the campaign starts spending: if Tenjin pulls the spend before the names match, the spend won’t merge with the Tenjin campaign.


### 5. Copy the click tracking URL


Click the copy icon next to the campaign under Tracking links, or later click the link count in the Tracking column on the Channels tab. Each campaign has its own link; add one campaign for each OpenAI campaign.


### 6. Add the link to your ad in OpenAI Ads Manager


1. Open your ad and paste the full Tenjin click tracking URL into the Ad Destination URL field. OpenAI shows a warning that placeholders like ` {oppref} ` are only filled in under Tracking parameters.

[Image: Tenjin URL pasted into Ad Destination URL in OpenAI Ads Manager]

2. Cut everything after the ` ? ` (starting with ` click_id= `) from the Ad Destination URL and paste it into Tracking parameters. The Ad Destination URL should end with your Tenjin campaign ID, and the warning goes away.

[Image: Query string moved into Tracking parameters in OpenAI Ads Manager]

3. Save the ad. Repeat for each ad that should be tracked.


Make sure no placeholders like ` {oppref} ` are left in the Ad Destination URL before saving. OpenAI doesn’t fill them in there, so installs can’t be attributed.

Legacy view steps – click to expand

In the Legacy view, tracking links come from a campaign and postbacks are called callbacks. Get your Pixel ID and Conversions API key (step 2 above) first.


1. Go to the Channels tab, click Add a Channel, search for ChatGPT Ads and select it.

[Image: Add a Channel with ChatGPT Ads (Legacy view)]

2. Open your app’s Callbacks tab and select ChatGPT Ads from the Channels and Partners dropdown. Enter the Pixel Id and the Conversions API key as ` Bearer YOUR_API_KEY `, click Save, then turn on the OpenAI Ads install callback.

[Image: ChatGPT Ads install callback (Legacy view)]

3. Go to the Campaigns tab, click Create Campaign, choose your OpenAI Ads account and app, name the campaign and click Create Campaign. Then name your OpenAI campaign as in step 4 above.

[Image: Create Campaign for ChatGPT Ads (Legacy view)]

4. Click View Tracking Links on the campaign and copy the Click Tracking URL. Then add it to your ad as in step 6 above.

[Image: View Tracking Links (Legacy view)]
