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

Custom Audiences

Add Custom Audience Members
POST
/custom_audiences/{custom_audience_id}/add
Archive Custom Audience
POST
/custom_audiences/{custom_audience_id}/archive
Cancel Custom Audience Operation
POST
/custom_audiences/{custom_audience_id}/operations/{operation_id}/cancel
Create Custom Audience
POST
/custom_audiences
Get Custom Audience
GET
/custom_audiences/{custom_audience_id}
Get Custom Audience Operation
GET
/custom_audiences/{custom_audience_id}/operations/{operation_id}
List Custom Audience Operations
GET
/custom_audiences/{custom_audience_id}/operations
List Custom Audiences
GET
/custom_audiences
Merge Custom Audiences
POST
/custom_audiences/merge
Remove Custom Audience Members
POST
/custom_audiences/{custom_audience_id}/remove
Replace Custom Audience Members
POST
/custom_audiences/{custom_audience_id}/replace
Resume Custom Audience Operation
POST
/custom_audiences/{custom_audience_id}/operations/{operation_id}/resume
Models
CustomAudienceAddCustomAudienceMembersResponse 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.

CustomAudienceArchiveCustomAudienceResponse 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
CustomAudienceCancelCustomAudienceOperationResponse 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.

CustomAudienceCreateCustomAudienceResponse 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
CustomAudienceGetCustomAudienceOperationResponse 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.

CustomAudienceGetCustomAudienceResponse 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
CustomAudienceListCustomAudienceOperationsResponse object { data, has_more, next_cursor, object }
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
CustomAudienceListCustomAudiencesResponse object { data, first_id, has_more, 3 more }
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
CustomAudienceMergeCustomAudiencesResponse 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.

CustomAudienceRemoveCustomAudienceMembersResponse 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.

CustomAudienceReplaceCustomAudienceMembersResponse 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.

CustomAudienceResumeCustomAudienceOperationResponse 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.