Introduction
Audience Segments represent groups of users, defined throughContact Lists provided externally.
Multiple Audience Segments can be combined using logical Algebra Nodes to define the desired target audience for your campaigns.
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.
For event-based targeting, please refer to the Preview documentation.
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, retailer 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 | AccountID associated with the Audience Segment, 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 |
| enum | Type of segment Accepted values:
Writeable? Y / Nullable? N |
| object | Setting to target users with contact list. Note, either one of See below for more details |
| timestamp | Timestamp of Audience Segment creation, in UTC Accepted values: Writeable? N / Nullable? N |
| string | User ID who created the Audience Segment ( Accepted values: string Writeable? N / Nullable? Y |
| timestamp | Timestamp of last Audience Segment update, in UTC Accepted values: Writeable? N / Nullable? N |
| list | Channels associated to the audience 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 |
|---|---|---|
| boolean | Indicates if the contact list can be edited Accepted values: Writeable? N / Nullable? N |
| enum | User identifier type from Contact list 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.
Create Audience Segment
This endpoint allows creating Audience Segments fromContact List.
Update Audience Segment
This endpoint allows updating Audience SegmentsfromContact List.
Note: the corresponding App should have the “Audiences Manage” permission enabled.
Sample Request
Delete Audience Segment
This endpoint allows deleting Audience Segments, either one by one or multiple of them. Sample RequestPartial 200 OK response
Search 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 to 0 and 500, respectively. See API Response.
Sample Request:
Get Contact List Segment Statistics
This endpoint allows retrieving statistics fromContact List segments.
Sample Request
Add/Remove identifiers in Contact List Audience Segment
This endpoint allows to add/remove users in a specificContact List segment.
Note: the corresponding App should have the “Audiences Manage” permission enabled.
Attribute | Data Type | Description |
|---|---|---|
| enum | Operation required for the sub-set of users provided in the request Accepted values: Writeable? N / Nullable? N |
Clear all identifiers in Contact List Audience Segment
This endpoint resets aContact List segment, erasing all existing users identifiers.
Sample Request