# OpenAI Ads through PubNio

PubNio runs 10 of the 12 ad operation kinds on OpenAI Ads, in beta. A campaign plan creates every level paused, and daily spend is read from stored rows. (provider rules checked 2026-12-05)

## What PubNio supports on OpenAI

Every OpenAI operation kind except `creative.create` and `boost.create`. PubNio's campaign, ad group, and ad are OpenAI's campaign, ad group, and ad; a create leaves `status: paused` on the campaign, ad group, and ad.

OpenAI's adapter checks plan drafts locally before anything is created.

## Spend controls

- Activating a campaign, ad group, or ad, or raising a budget, needs a monthly cap on the account's spend policy, or it fails with `ad-spend-forbidden` and `monthly_cap_required` (its `nextAction` names `ads.updateSpendPolicy`), and it fails with `ad-kill-switch-active` while the kill switch is on; lowering a budget needs neither.
- `ads.enableKillSwitch` queues a retryable provider pause for each campaign and turns away activations, resumes, and budget increases until it is cleared.

## Change the campaign budget

- PubNio posts the campaign's `budget` as `daily_spend_limit_micros` or `lifetime_spend_limit_micros`, then reads the campaign back.
- A budget change needs a signed-in session in the web app; an API key or an MCP session, OAuth included, gets 403 `human_actor_required`.
- A budget increase must fit the per-campaign maximum, the daily cap, and the monthly cap, counted as 30.4 days of daily budgets with queued increases at their new amount; a decrease skips those checks.

```http
POST /api/v1/ads/accounts/7f3c2a10-5b4e-4d6f-8a9b-0c1d2e3f4a5b/campaigns/5e2b7c90-1a3d-4f6e-8b0c-9d4a2e6f1c37/budget?workspaceId=3d9a1f20-7c4b-4e8a-9f61-2b5c8d7e0a14
Authorization: Bearer <token>
Idempotency-Key: budget-openai-ads-1
Content-Type: application/json

{
  "budget": {
    "amountMinor": 5000,
    "currency": "USD",
    "kind": "daily"
  },
  "expectedRevision": 3
}
```

PubNio answers 202 with a `budget.update` operation. A stale `expectedRevision` gets `ad-revision-conflict`; a cap it would break gets 422 `ad-budget-exceeded` with the limit and the committed total.

## Connect and scopes

Connect with an Advertiser API key instead of OAuth. PubNio checks the key against the ad account it names and stores it encrypted.

No OAuth scopes: the key itself grants access. PubNio calls Ads API v1.

## Limits

- OpenAI Ads is in beta in PubNio's catalog.

| What the provider states | Source |
| --- | --- |
| Advertiser API key from Ads Manager settings | [Overview \| OpenAI Ads](https://developers.openai.com/ads/api-overview), read 2026-12-05 |
| One ad account per key | [Authentication \| OpenAI Ads](https://developers.openai.com/ads/api-reference/authentication), read 2026-12-05 |
| Exactly one budget field per campaign | [Bidding & Budgets \| OpenAI Ads](https://developers.openai.com/ads/bidding-and-budgets), read 2026-12-05 |
| Daily minimums depend on currency | [Bidding & Budgets \| OpenAI Ads](https://developers.openai.com/ads/bidding-and-budgets), read 2026-12-05 |

## Sources

- [Overview | OpenAI Ads](https://developers.openai.com/ads/api-overview), read 2026-12-05: "You will need an ad account and an Advertiser API key. You can create your Advertiser API key within the Settings page in Ads Manager."
- [Authentication | OpenAI Ads](https://developers.openai.com/ads/api-reference/authentication), read 2026-12-05: "Each Ads API key is scoped to one ad account."
- [Bidding & Budgets | OpenAI Ads](https://developers.openai.com/ads/bidding-and-budgets), read 2026-12-05: "Provide exactly one budget field. A campaign cannot have both a daily and a lifetime budget."
- [Bidding & Budgets | OpenAI Ads](https://developers.openai.com/ads/bidding-and-budgets), read 2026-12-05: "Daily minimums depend on the account currency. Requests below the applicable minimum return an error with the required amount."

## Related

- [Create a campaign on OpenAI](https://pubnio.com/ads/openai-ads/create-campaign)
- [Read spend on OpenAI](https://pubnio.com/ads/openai-ads/spend-report)
- [OpenAI MCP server](https://pubnio.com/openai-ads-mcp)
- [All ad providers](https://pubnio.com/ads)
- API reference: [ads.enableKillSwitch](https://pubnio.com/docs/reference/ads-enable-kill-switch/)
- API reference: [ads.setCampaignBudget](https://pubnio.com/docs/reference/ads-set-campaign-budget/)
- [Provider API change tracker](https://pubnio.com/docs/changes/)
- [Problem: ad-kill-switch-active](https://pubnio.com/docs/problems/ad-kill-switch-active/)
- [Problem: ad-budget-exceeded](https://pubnio.com/docs/problems/ad-budget-exceeded/)

