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 Audiences

GET
/custom_audiences

List custom audiences for the authenticated ad account.

List Custom Audiences

curl https://api.ads.openai.com/v1/custom_audiences \
    -H "Authorization: Bearer $OPENAI_ADS_API_KEY"
200 — Example
{
  "data": [
    {
      "id": "id",
      "created_at": 0,
      "description": "description",
      "hash_spec_version": "hash_spec_version",
      "invalid_identifier_count_range": "invalid_identifier_count_range",
      "matched_identifier_count_range": "matched_identifier_count_range",
      "matched_user_count_range": "matched_user_count_range",
      "name": "name",
      "status": "status",
      "updated_at": 0,
      "uploaded_identifier_count_range": "uploaded_identifier_count_range",
      "membership_revision": 0
    }
  ],
  "first_id": "first_id",
  "has_more": true,
  "last_id": "last_id",
  "object": "object",
  "policy_revision": "policy_revision"
}
Query Parameters
after: optional string
before: optional string
custom_audience_ids: optional array of string
maxItems500
intended_use: optional "inclusion" or "exclusion" or "bid_multiplier"
One of the following:
"inclusion"
"exclusion"
"bid_multiplier"
limit: optional integer
minimum1
maximum500
matched_count_granularity: optional "granular"
order: optional "asc" or "desc"
One of the following:
"asc"
"desc"
policy_revision: optional string
minLength64
maxLength64
Returns
data: array of object { id, created_at, description, 9 more }
id: string
created_at: integer
formatunixtime
description: string or null
hash_spec_version: string
invalid_identifier_count_range: string
matched_identifier_count_range: string
matched_user_count_range: string
name: string
status: string
updated_at: integer
formatunixtime
uploaded_identifier_count_range: string
membership_revision: optional integer
first_id: string or null
has_more: boolean
last_id: string or null
object: string
policy_revision: optional string
Returns Examples
200 — Example
{
  "data": [
    {
      "id": "id",
      "created_at": 0,
      "description": "description",
      "hash_spec_version": "hash_spec_version",
      "invalid_identifier_count_range": "invalid_identifier_count_range",
      "matched_identifier_count_range": "matched_identifier_count_range",
      "matched_user_count_range": "matched_user_count_range",
      "name": "name",
      "status": "status",
      "updated_at": 0,
      "uploaded_identifier_count_range": "uploaded_identifier_count_range",
      "membership_revision": 0
    }
  ],
  "first_id": "first_id",
  "has_more": true,
  "last_id": "last_id",
  "object": "object",
  "policy_revision": "policy_revision"
}