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

# Ad account

> Connect the OpenAI ad account your ChatGPT ads run from.

ChatGPT ads run from your own ad account at OpenAI, the company behind ChatGPT. OpenAI shows the ads and bills you there. Aibuku writes the ads and looks after them, through a key you make in OpenAI's Ads Manager. You connect it once per business.

To open it, in the sidebar under **Project settings**, choose **Ad account**. Only a project Admin sees this page. Once [Connected apps](https://help.aibuku.com/account/connected-apps.md) is switched on for your workspace, the sidebar has no **Ad account** entry: choose **Connected apps**, then **Open Ad account** under **Ads**.

## Connect your ad account

Choose **Connect ad account**. A panel opens at the side with four steps. The page stays behind it.

1. **Open Ads Manager** opens ads.openai.com in a new tab. If you already have an ad account there, choose **I already have an account** to skip the next step.
2. Sign in or create an OpenAI login, create an ad account for your business with its address, and add the card OpenAI will charge for your ads. Aibuku does not see the card and takes no share of ad money. Choose **Done, next**.
3. In Ads Manager, open *Settings*, then *API keys*. Create a key and name it "Aibuku". Copy it: OpenAI shows a key only once. Choose **I’ve copied it**.
4. Paste the key and choose **Check key**.

Aibuku checks the key with OpenAI straight away. When OpenAI accepts it, you see *Connected to* and your ad account's name. Choose **Done**.

A key is a long code, like a password made for one job. It lets Aibuku create, change and pause ads in that one ad account, and nothing else in your OpenAI account. Aibuku stores it locked away, never shows it again, and never writes it into its logs. Delete the key in Ads Manager at any time and Aibuku can no longer touch your ads.

### When the key is not accepted

* *OpenAI did not accept this key.* Check that you copied all of it, and that you made it in Ads Manager. A key from OpenAI's developer site is a different kind and does not work here.
* *Aibuku couldn’t reach OpenAI to check the key.* Nothing was saved. Try again in a minute.

## Once connected

The page shows your ad account's name, the currency it pays in, and the day you connected it.

* **Open Ads Manager** opens OpenAI's Ads Manager, where your card and invoices live.
* **Replace key** opens the same panel at the key steps. Use it when you made a new key.
* **Remove key** asks first. Ads already running at OpenAI keep running and spending after the key is removed, until you pause them in Ads Manager. Choose **Remove key** again to remove it, or **Cancel**.

## When the key stops working

If the key is deleted or stops working in Ads Manager, the page says *Aibuku can’t reach your ad account* in red, and since when. Aibuku checks the key again when you open the page, at most every 15 minutes, and every time it asks OpenAI about your campaigns. The project's owners and admins also get one email when the key stops working, and **Ads** and each campaign say so too.

Ads already running at OpenAI keep running and spending. To stop them now, choose **Open Ads Manager**, choose the campaign and pause it there. To let Aibuku look after your ads again, make a new key and choose **Connect again**. To take the old key out of Aibuku without a new one, choose **Remove key**.

## Tracking code for your own website

When your ads lead to your own website, OpenAI counts the leads they bring only if its tracking code is on your site. When they lead to your web page, Aibuku counts every lead itself and you need nothing here. Your web page offers the same code to its visitors only while an ad campaign leads there, and asks each visitor first (see [Web page](https://help.aibuku.com/your-business/web-page.md#leads-from-your-ads)). On your own website, asking visitors for consent is up to you and your site.

1. Choose **Get my tracking code**. Aibuku uses your ad account's website tracking code, or makes one named "Aibuku" if it has none. Only a project Admin can do this.
2. Choose **Copy**, and paste the code on every page of your site, just before `</head>`. If someone else runs your site, send it to them.
3. Choose **Check my site**. Aibuku reads your site once and says *Found on* your site with the date, or that it was not found.

Once the code is found, **Ads** → **Insights** counts the leads OpenAI reports for ads that lead to that site. If OpenAI does not let your account make a tracking code, the page says so: make one in Ads Manager under *Conversions*, then choose **Get my tracking code** again.


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