Create Custom Audience
POST
/custom_audiencesCreate a custom audience from an uploaded file, or without a file when small audiences are enabled for the account. Processing and publication are asynchronous.
Create Custom Audience
curl https://api.ads.openai.com/v1/custom_audiences \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $OPENAI_ADS_API_KEY" \
-d '{
"name": "xxx"
}'200 — Example
{
"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
}Returns Examples
200 — Example
{
"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
}