POST /api/v2/buyer/advertisers/{advertiserId}/audiences/sync
Syncs first-party CRM audiences for an advertiser by adding, removing, or deleting members. Processing is asynchronous — the call returns 202 with a taskId you poll for completion.
Request
curl
Parameters
| Field | Type | Required | Notes |
|---|---|---|---|
advertiserId | string (path) | Yes | Advertiser ID (numeric string, e.g. 25) |
audiences | array | Yes | Audiences to sync (at least 1) |
audiences[].audienceId | string | Yes | Buyer’s identifier for the audience (1–255 chars). Used in targeting overlays |
audiences[].name | string | No | Human-readable name (max 255 chars) |
audiences[].consentBasis | enum | No | GDPR lawful basis: consent, legitimate_interest, contract, legal_obligation |
audiences[].add | array | No | Members to add (max 100000). Each needs externalId; optionally hashedEmail, hashedPhone, uids[] |
audiences[].remove | array | No | Members to remove by externalId (max 100000) |
audiences[].delete | boolean | No | When true, delete this audience entirely |
deleteMissing | boolean | No | When true, audiences not in this request are marked deleted |
pushNotificationConfig | object | No | ADCP push notification config to receive a callback when processing completes |
hashedEmail is the SHA-256 hash of a lowercased, trimmed email (64-char hex). hashedPhone is the SHA-256 hash of an E.164 phone number. Send hashed identifiers, never raw PII.Response
202 Accepted. taskId (identical to operationId) tracks async processing — poll GET /api/v2/buyer/tasks/{taskId} until status is completed or failed. See Async tasks. The synced audiences then appear via List audiences.
Errors
400 VALIDATION_ERROR— emptyaudiences, malformedhashedEmail/hashedPhone, or a batch exceeding 100000 members.404 NOT_FOUND—advertiserIddoes not exist or is not visible to the authenticated customer.
Related
Advertiser tasks
All advertiser operations
Async tasks
Poll a taskId to completion
List audiences
Check match status after sync
Advertiser overview
Fields, lifecycle, and concepts