For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to the page URL.
Primary navigation
Overview Agent Access Ads ChatGPT + Codex user docs Use cases

API Reference

Update Ad Account

POST
/ad_account/brand

Update ad account brand metadata. The legacy name field synchronizes all three names; legal_name, account_name, and brand_name update independently and cannot be combined with name.

Update account names or the advertiser icon. Send at least one field.

Changing the legal or public brand name pauses ad delivery until the account passes review.

This operation must be enabled for the ad account. If it returns 403, contact your OpenAI partner representative.

Use legal_name, account_name, or brand_name to update names independently. Omitted names remain unchanged.

Legacy name sets all three names to the same value, replacing any separate values. Combining name with an individual name field returns 422.

Names must contain 2–1000 characters after trimming and cannot contain < or >. The API rejects null and blank names.

To change only the name shown in ads, send brand_name.

Upload the advertiser icon with the file endpoint, then assign its file_id to favicon_file_id.

The API may save changes before returning 503. Retrieve the account to check its values, then retry the same request.

Update Ad Account

curl https://api.ads.openai.com/v1/ad_account/brand \
    -H 'Content-Type: application/json' \
    -H "Authorization: Bearer $OPENAI_ADS_API_KEY" \
    -d '{
          "brand_name": "Acme"
        }'
200 — success
{
  "id": "adacct_123",
  "name": "Acme LLC",
  "legal_name": "Acme LLC",
  "account_name": "Acme US campaigns",
  "brand_name": "Acme",
  "url": "https://www.acme.example",
  "preview_url": "https://example.com/assets/acme-icon.png",
  "status": "active",
  "timezone": "UTC",
  "currency_code": "USD",
  "review": {
    "status": "in_review"
  }
}
Body Parameters
JSON
account_name: optional string
brand_name: optional string
favicon_file_id: optional string
name: optional string
url: optional string
minLength1
maxLength2048
Returns
id: string
currency_code: string
name: string
preview_url: string or null
review: object { status, reason, screenshot_url }
status: "in_review" or "rejected" or "approved"
One of the following:
"in_review"
"rejected"
"approved"
reason: optional string or "crawl_failed" or "crawler_bot_blocked" or "crawler_captcha" or 17 more
One of the following:
string
"crawl_failed" or "crawler_bot_blocked" or "crawler_captcha" or 17 more
One of the following:
"crawl_failed"
"crawler_bot_blocked"
"crawler_captcha"
"crawler_login_required"
"crawler_400"
"crawler_401"
"crawler_403"
"crawler_404"
"crawler_408"
"crawler_410"
"crawler_429"
"crawler_500"
"crawler_502"
"crawler_503"
"crawler_504"
"robots_txt"
"unsupported_content_type"
"landing_page_image_processing_failed"
"landing_page_unusable"
"missing_favicon"
screenshot_url: optional string
timezone: string
url: string
account_integrity_review: optional object { review, details }
review: object { status, reason, screenshot_url }
status: "in_review" or "rejected" or "approved"
One of the following:
"in_review"
"rejected"
"approved"
reason: optional string or "crawl_failed" or "crawler_bot_blocked" or "crawler_captcha" or 17 more
One of the following:
string
"crawl_failed" or "crawler_bot_blocked" or "crawler_captcha" or 17 more
One of the following:
"crawl_failed"
"crawler_bot_blocked"
"crawler_captcha"
"crawler_login_required"
"crawler_400"
"crawler_401"
"crawler_403"
"crawler_404"
"crawler_408"
"crawler_410"
"crawler_429"
"crawler_500"
"crawler_502"
"crawler_503"
"crawler_504"
"robots_txt"
"unsupported_content_type"
"landing_page_image_processing_failed"
"landing_page_unusable"
"missing_favicon"
screenshot_url: optional string
details: optional object { decision, reason, status_updated_at }
decision: optional string
reason: optional string
status_updated_at: optional string
account_name: optional string
brand_name: optional string
creative_optimization_opt_in: optional boolean

Whether the ad account opts in to creative enhancements.

status: optional string
Returns Examples
200 — success
{
  "id": "adacct_123",
  "name": "Acme LLC",
  "legal_name": "Acme LLC",
  "account_name": "Acme US campaigns",
  "brand_name": "Acme",
  "url": "https://www.acme.example",
  "preview_url": "https://example.com/assets/acme-icon.png",
  "status": "active",
  "timezone": "UTC",
  "currency_code": "USD",
  "review": {
    "status": "in_review"
  }
}