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

List Custom Audience Operations

GET
/custom_audiences/{custom_audience_id}/operations

List accepted custom audience operations for the authenticated ad account.

List Custom Audience Operations

curl https://api.ads.openai.com/v1/custom_audiences/$CUSTOM_AUDIENCE_ID/operations \
    -H "Authorization: Bearer $OPENAI_ADS_API_KEY"
200 — Example
{
  "data": [
    {
      "custom_audience_id": "custom_audience_id",
      "operation": "operation",
      "operation_id": "operation_id",
      "status": "status",
      "failure_reason": {
        "code": "code",
        "message": "message"
      }
    }
  ],
  "has_more": true,
  "next_cursor": "next_cursor",
  "object": "object"
}
Path Parameters
custom_audience_id: string
Query Parameters
cursor: optional string
minLength1
limit: optional integer
minimum1
maximum100
Returns
data: array of object { custom_audience_id, operation, operation_id, 2 more }
custom_audience_id: string
operation: string
operation_id: string
status: string
failure_reason: optional object { code, message }

Present only for failed operations with a known advertiser-actionable cause. Omitted for other failures and operations recorded without a failure reason.

code: string

Stable code for an advertiser-actionable failure.

message: string

Safe explanation and suggested corrective action.

has_more: boolean
next_cursor: string or null
object: string
Returns Examples
200 — Example
{
  "data": [
    {
      "custom_audience_id": "custom_audience_id",
      "operation": "operation",
      "operation_id": "operation_id",
      "status": "status",
      "failure_reason": {
        "code": "code",
        "message": "message"
      }
    }
  ],
  "has_more": true,
  "next_cursor": "next_cursor",
  "object": "object"
}