Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

  1. Go to Atlas > Ingest > Integrations.

  2. Find OpenAI Ads and click Connect

  3. Paste your OpenAI advertiser API key and click Connect.

  4. (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.

Field
Description

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

  1. Authentication

    • HockeyStack connects to the OpenAI Ads API with your advertiser API key.

  2. Initial Backfill

    • On first connection, HockeyStack imports up to two years of history, subject to what OpenAI makes available.

  3. Daily Import

    • Imports run once a day and pull data through the previous day.

    • Days are defined by the advertiser account's timezone.

  4. 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.

  5. 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, and hstk_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