Introduction
Audience Segments represent a groups of users to target.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:segment-not-found→ Segment is not found.name-must-be-unique→ Segment name must be unique.name-must-not-be-empty→ Segment name property must not be empty.
Endpoints
Verb | Endpoint | Description |
|---|---|---|
POST |
| Create a new Audience Segment |
PATCH |
| Update an Audience Segment |
POST |
| Delete an Audience Segment |
POST |
| Search for Audience Segments by segment IDs, data provider IDs and/or segment types |
GET |
| Retrieve contact list statistics |
POST |
| Add/remove identifiers in contact list Audience Segment |
POST |
| Clear all identifiers in contact list Audience Segment |
Audience Segment Attributes
Attribute | Data Type | Description |
|---|---|---|
| string | Audience Segment ID, generated internally by Criteo Accepted values: string of int64 Writeable? N / Nullable? N |
| string | Audience Segment name Accepted values: string Writeable? Y / Nullable? N |
| string | Description of the Audience Segment Accepted values: string Writeable? Y / Nullable? N |
| string | Data Provider ID associated with the Audience Segment, generated internally by Criteo Accepted values: string of int64 Writeable? N / Nullable? N |
| enum | Type of segment Read-only value, which can be one of:
Writeable? N / Nullable? N |
| object | Setting to target users with contact list. See below for more details |
| timestamp | Timestamp of Audience Segment creation, in UTC Accepted values: Writeable? N / Nullable? N |
| timestamp | Timestamp of last Audience Segment update, in UTC Accepted values: Writeable? N / Nullable? N |
- 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.
Contact List Segment Attributes
Attribute | Data Type | Description |
|---|---|---|
| string | ID owned by the client and used to identify the Audience Segment. If none is provided, one will be generated internally by Criteo Accepted values: string Writeable? Y / Nullable? N |
- 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.
Create Audience Segment
This endpoint allows creating Audience Segments. Sample RequestremoteId
Partial 200 OK response
Update Audience Segment
This endpoint allows updating Audience Segments. Sample RequestDelete Audience Segment
This endpoint allows deleting Audience Segments, either one by one or multiple of them. Sample RequestSearch for Audience Segments
This endpoint allows searching for existing Audience Segments that satisfy one or multiple attributes at the same time. Results are paginated usingoffset and limit query parameters; if omitted, defaults to0 and 50 respectively. The maximum limit is 100.
Sample Request:
Get Contact List Segment Statistics
This endpoint allows retrieving statistics from a contact list Audience Segment. Sample RequestAdd/Remove identifiers in Contact List Audience Segment
This endpoint allows to add/remove users in a specific contact list Audience Segment.Add or Remove in the operation attribute in the request to indicate if you want to add or remove the list of identifiers from the contact list.Attribute | Data Type | Description |
|---|---|---|
| enum | Operation required for the sub-set of users provided in the request Accepted values: Writeable? Y / Nullable? N |
| enum | Type of identifiers that are being uploaded Accepted values: Writeable? Y / Nullable? N |
| string[] | Array of identifiers represented as strings |