> For the complete documentation index, see [llms.txt](https://docs.adpage.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.adpage.io/integrations-marketingtools/openai-ads/where-to-find-the-openai-pixel-id-and-api-key.md).

# Where to find the OpenAI Pixel ID and API Key

How to retrieve the OpenAI Pixel ID and API Key via OpenAI Ads Manager

To set up tracking for OpenAI Ads you'll need two values: the **Pixel ID** for the browser and server tags, and an **API Key** for server-side tags. Both values can be found in the OpenAI Ads Manager account.

{% hint style="info" %}
Access to OpenAI Ads Manager is still limited while the platform is in early rollout. If the client doesn't have these yet, they'll need to request Conversions API access from their OpenAI account team before you can implement this tracking.
{% endhint %}

### Finding the OpenAI Pixel ID

{% stepper %}
{% step %}

#### Open the OpenAI Ads Manager

Open your [OpenAI Ads Manager](https://ads.openai.com/manage/campaigns).
{% endstep %}

{% step %}

#### Go to Conversions

Navigate towards **Conversions** and find (or create) your Pixel in the **Data Source** section

<figure><img src="https://1274044937-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FA65KwL1NwewlJbtCXsXd%2Fuploads%2FimycuCcOQ3z3Ho9C5LhM%2Fimage.png?alt=media&amp;token=d9c8b9b1-38d2-4b6a-96ec-b356795bc0bd" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### Copy the Pixel ID

If you already have a Pixel you can copy the ID underneath the Pixel name.

If you don't have a Pixel yet, you can create a new Data Source in the top right with the use of the **+ Create** button.
{% endstep %}
{% endstepper %}

### Finding the API Key

{% stepper %}
{% step %}

#### Open the OpenAI Ads Manager

Open your [OpenAI Ads Manager](https://ads.openai.com/manage/campaigns).
{% endstep %}

{% step %}

#### Go to Conversions

Navigate towards **Conversions** where you can find your pixel Data Source.

<figure><img src="https://1274044937-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FA65KwL1NwewlJbtCXsXd%2Fuploads%2FjhuHs5sAgVseFqn2tib5%2Fimage.png?alt=media&amp;token=326f3478-400c-4f2c-a380-b36cb245708b" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Create an API Key

In the top right click on the key-icon to create a new key.

<figure><img src="https://1274044937-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FA65KwL1NwewlJbtCXsXd%2Fuploads%2FGjavhabvTV9wNSvKo5yb%2Fimage.png?alt=media&amp;token=46b6ad74-247f-48ac-bebb-9a80eb94fb88" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.adpage.io/integrations-marketingtools/openai-ads/where-to-find-the-openai-pixel-id-and-api-key.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
