Introduction
Audiences give the ability to advertisers to define subsets of retailer visitors to be targeted in their campaigns. Audiences are built of one or multiple audience segments that can be combined using logical Algebra Nodes to define target campaigns’ audiences.create, update, delete) use a partial approval model. Even if some items in the request fail, the response will return 200 OK. Any failed items will be listed in the warnings section of the response with an error code and details.Examples of possible warning codes:audience-not-found→ Audience is not found.name-must-be-unique→ Audience name must be unique.name-must-not-be-empty→ Audience name property must not be empty.
Endpoints
Verb | Endpoint | Description |
|---|---|---|
POST |
| Search for audiences by audience IDs, retailer IDs and/or segment IDs. |
Audience Attributes
Attribute | Data Type | Description |
|---|---|---|
| string | Audience ID, generated internally by Criteo Accepted values: string of int64 Writeable? N / Nullable? N |
| string | Audience name Accepted values: string Writeable? Y / Nullable? N |
| string | Description of the Audience Accepted values: string Writeable? Y / Nullable? N |
| string | AccountID associated with the Audience, generated internally by Criteo Accepted values: string of int64 Writeable? N / Nullable? N |
| string | RetailerID, associated with the Audience Segment, generated internally by Criteo Accepted values: string of int64 Writeable? N / Nullable? N |
| object | Algebra node with the definition of how the different audience segments are combined together to create the audience, using logical operators Accepted values: seeAlgebra Nodes Writeable? N / Nullable? N |
| timestamp | Timestamp of Audience creation, in UTC Accepted values: Writeable? N / Nullable? N |
| string | User ID who created the Audience ( Accepted values: string Writeable? N / Nullable? Y |
| timestamp | Timestamp of last Audience update, in UTC Accepted values: Writeable? N / Nullable? N |
create operation
- Writeable (Y/N): Indicates if the field can be modified in requests.
- Nullable (Y/N): Indicates if the field can accept null/empty values.
- Primary Key: A unique, immutable identifier of the entity, generated internally by Criteo. Primary keys are typically ID fields (e.g.,
retailerId,campaignId,lineItemId) and are usually required in the URL path.
Search Audiences
This endpoint returns a list of audiences that match the provided filters. If present, the filters are AND’ed together when applied. You can search audiences by audience IDs, retailer IDs and/or segment IDs. Results are paginated usingoffset and limit query parameters; if omitted, defaults to 0 and 500, respectively. See API Response.
Sample Request: searching by Retailer ID only