OpenAI Ads
The OpenAI Ads integration pulls your ChatGPT ad performance data into HockeyStack, so you can analyze ad spend, clicks, and impressions alongside your marketing, revenue, and product data.
The integration connects with an OpenAI advertiser API key and imports daily ad-level performance data.
How to Connect
Go to Atlas > Ingest > Integrations.
Find OpenAI Ads and click Connect
Paste your OpenAI advertiser API key and click Connect.
You can generate an API key in your OpenAI Ads account under your OpenAI Ads Settings
(Optional) Turn on Auto-tagging if you want HockeyStack to add tracking parameters to your campaigns. See Auto-Tagging below.
After you connect, HockeyStack backfills up to two years of history, depending on what OpenAI makes available.
What Data Gets Tracked as Metadata
Data is stored as one row per ad per day. Ad/day rows where spend, clicks, and impressions are all zero are skipped.
account_id
The ID of the OpenAI advertiser account
currency
The currency the account reports spend in.
date
The day the metrics were recorded
network
Always OpenAI Ads
campaign_id
The ID of the campaign
campaign_name
The name of the campaign
adgroup_id
The ID of the ad group
adgroup_name
The name of the ad group
ad_id
The ID of the ad
ad_name
The name of the ad
utm_source
UTM source parsed from the destination link, defaults to openai if the link doesn’t set one
utm_medium
UTM medium parsed from the destination link
utm_campaign
UTM campaign parsed from the destination link
utm_term
UTM term parsed from the destination link.
utm_content
UTM content parsed from the destination link
cost
Total spend for the ad on that day
clicks
Total clicks for the ad on that day
impressions
Total impressions for the ad on that day
High-Level Integration Flow
Authentication
HockeyStack connects to the OpenAI Ads API with your advertiser API key.
Initial Backfill
On first connection, HockeyStack imports up to two years of history, subject to what OpenAI makes available.
Daily Import
Imports run once a day and pull data through the previous day.
Days are defined by the advertiser account's timezone.
Data Formatting
Account, campaign, ad group, and ad details are combined with daily spend, clicks, and impressions.
Standard UTM parameters are parsed from each ad's destination link.
Data Insertion
The formatted data is stored under Paid Ads with the network
OpenAI Ads.
Reporting in HockeyStack
Find OpenAI Ads data under Paid Ads, filtered by the Ad Network
OpenAI Ads.Break down spend, clicks, and impressions by account, campaign, ad group, ad, date, and UTM values.
Auto-Tagging
Auto-tagging is off by default.
When it's on:
HockeyStack checks your campaigns every 12 hours.
It updates each campaign’s query-string template to add these tracking parameters:
oppref,hstk_campaign,hstk_creative, andhstk_network.Any other query-string parameters already in the template are kept as they are.
Notes and Caveats
Not currently pulled
Platform-reported conversions or revenue
Budgets, campaign status, targeting or audience settings
Geographic or demographic data
Creative content beyond the ad ID and ad name
Custom UTM parameters
Reconnecting
If the API key stops working, the integration will be marked as expired in your workspace. Reconnect it with a valid key from Atlas > Ingest > Integrations.
Data freshness
Today's data won't appear until the next daily import, since imports only run through the previous day.
Last updated