Primary navigation

Overview

Advertiser API endpoints & usage

The Advertiser API lets you manage ad campaigns, ad groups, ads, files, and reporting from one API. It supports CRUD-like functions with standard JSON content types.

Authentication

Issue an API key in the Settings tab of Ads Manager. Each key is scoped to one ad account.

Pass the key as a bearer token on every request:

Authorization: Bearer $OPENAI_ADS_API_KEY

By default, the Advertiser API works in the context of a single Ad Account. If you need to manage multiple Ad Accounts with the API, please contact us.

Endpoints

ResourceUse for
CampaignsCreate, list, retrieve, update, and change campaign state.
Ad GroupsCreate, list, retrieve, update, and change ad group state.
AdsCreate, list, retrieve, update, and change ad state.
FilesUpload creative assets for use in ads.
InsightsRetrieve performance data across ad account, campaign, ad group, and ad scopes.

All resources live inside a single Ad Account.

Use the Quickstart for a minimal end-to-end workflow, or go directly to the API reference.

Object Statuses

For an ad to show to users, the ad, and its parent ad group and campaign all have to be enabled. Further, the Ad has to be reviewed. Reviews typically only take a few minutes, you can monitor with the review_status field.

Rate limits

The Advertiser API enforces limits by both ad account and IP address:

ScopeLimit
Per endpoint600 requests per minute
Overall1,200 requests per minute

Requests must stay within both the ad-account and IP-address limits.

OpenAPI spec

Download the OpenAPI spec

Changelog

ReleaseChange
v1Published the initial API version