Audience Segment types
Field name and type | Possible value | Optional / Required / Computed | Description |
|---|---|---|---|
id (String) | Required | Unique ID of the segment | |
name (String) | Required | Name of the segment. It must be unique per advertiser. | |
description (String) | Optional | Description of the segment | |
type (AudienceSegmentType) |
| Computed | Type of audience segment (read-only). Once created, the type cannot be changed. |
createdAt (String) | Computed | ISO-8601 timestamp in UTC of segment creation (read-only) | |
updatedAt (String) | Computed | ISO-8601 timestamp in UTC of segment update (read-only) | |
advertiser Id (String) | Required | Advertiser associated to the segment |
In-market
In-market segments can be used to target users based on high shopping intents and demographics.Field name | Type | Optional / Required / Computed | Description |
|---|---|---|---|
In-market | In-market | Optional | Indicates that this should be an Audience Segment of typeIn-market |
Field name | Type | Optional / Required / Computed | Description |
|---|---|---|---|
country | String The ISO 3166-1 alpha-2 country code | Required (if In-market is set) | Reach people of a specific country. |
buyingPower | BuyingPower array BuyingPower can be:
| Optional | Reach people who frequently purchase high price range items to lower price range items. If empty, don’t filter people based on buying power. |
gender | Gender Gender can be:
| Optional | Reach people who’ve shown interest in products made for a specific gender. If empty, don’t filter people based on gender. |
String array | Required (if In-market is set) | Reach new people based on their commercial interests | |
String array | Required (if In-market is set) | Choose the commercial brands your segment might be interested in | |
priceRange | PriceRange array PriceRange can be:
| Optional | Reach people who’ve shown interest in products within a specific price range. If empty, don’t filter people based on price range. |
Contact List
Contact List segments can be used to target people from your contact lists. First, you define the segment and update the data using other endpoints.Field name | Type | Optional / Required / Computed | Description |
|---|---|---|---|
contactList | ContactList | Optional | Indicates that this should be an Audience Segment of typeContact List |
Field name | Type | Optional / Required / Computed | Description |
|---|---|---|---|
isReadOnly | Boolean | Computed | True if the contact list-specific information cannot be edited through the public API, false otherwise. Contact Lists can be created through the Public API or through Commerce Growth, and this determines where they’re editable: if created through the Public API, they can only be edited through the Public API; same for Commerce Growth. Segments created in Commerce Growth will show up as |
Location
Location Segments can be used to target users in specific locations.Field name | Type | Optional / Required / Computed | Description |
|---|---|---|---|
location | Location | Optional | Indicates that this should be an Audience Segment of typeLocation |
Field name | Type | Optional / Required / Computed | Description |
|---|---|---|---|
registryType | RegistryType RegistryType can take only one value (for now):
| Required (if location set) | The type of location audience segment |
pointsOfInterest | PointsOfInterest array. Each point has a name, latitude and longitude | Required (if location set) | Reach users which have been historically located in the given coordinates |
→ name | String | Required | Name of the point of interest |
→ latitude | Decimal | Required | ISO-6709 latitude |
→ longitude | Decimal | Required | ISO-6709 longitude |
radiusInKm | Integer | Required (if location set) | The expected maximum distance in kilometers between a user and a point of interest |
Behavioral
Criteo-provided pre-built segments. These segments are not created by the user but provided by Criteo. You cannot edit them or delete them, but you can use them to build Audiences (e.g. “People that like shoes”, “People that go often to the theater”, etc.).Field name | Type | Optional / Required / Computed | Description |
|---|---|---|---|
behavioral | Behavioral | Computed | Indicates that this should be an Audience Segment of typeBehavioral |
Field name | Type | Optional / Required / Computed | Default Value | Description |
|---|---|---|---|---|
country | String | Computed | The user’s country | |
category | BehavioralCategory. Can take any of these values:
| Computed | The behavioral’s category | |
startDate | DateTime | Computed (can be empty) | Empty | The date when this audience segment will start to be filled with audience data |
endDate | DateTime | Computed (can be empty) | Empty | The date when this audience segment will be cleaned of audience data |
Behavioral type.Prospecting
Prospecting segments are used to include users similar to the buyers of the advertiser.Field name | Type | Optional / Required / Computed | Description |
|---|---|---|---|
Prospecting | Prospecting | Optional | Indicates that this should be an Audience Segment of typeProspecting |
"prospecting":{}
Lookalike
Lookalike segments allow you to reach users that are similar to a given segment seed. You will be able to reach people who look like, behave like, or are interested in things similar to another segment.Field name | Type | Optional / Required / Computed | Description |
|---|---|---|---|
Lookalike | Lookalike | Optional | Indicates that this should be an Audience Segment of typeLookalike |
Field | Type | Mandatory | Description |
|---|---|---|---|
seedSegmentId | string | Yes | Id of existing Contact List or Event segment that will be treated as a seed. |
targetSize | int64 | No | The target size of the resulting segment after computation. |
Retargeting
The retargeting segments enable you to focus on specific groups of website visitors based on the timeframes since their last visit. You have the option to target buyers, non-buyers, or all visitors.Field name | Type | Optional / Required / Computed | Description |
|---|---|---|---|
Retargeting | Retargeting | Optional | Indicates that this should be an Audience Segment of typeRetargeting |
Name | Type | Optional/Required | Description |
|---|---|---|---|
visitorsType | VisitorsType Can take three values: All
NonBuyers | Required | The type of users being targeted. |
daysSinceLastVisitMin | Integer | Required | Include users who visited your website before this number of days |
daysSinceLastVisitMax | Integer | Required | Include users who visited your website after this number of days |
Operations
Get a list of available In-market interests.
Returns a list with all available In-market interests that can be used to define an In-market audience segment. These In-market interests correspond to the Google product taxonomy. An In-market interest is considered available if there is enough volume for this particular In-market interest in the given country.Name | Required / Optional | Description |
|---|---|---|
advertiser-id | required | The Advertiser Id |
country | required | The ISO 3166-1 alpha-2 country code |
Get a list of available In-market brands.
Returns a list with all available In-market brands that can be used to define an In-market audience segment. An In-market brand is considered available if there is enough volume for this particular In-market brand in the given country.Name | Required / Optional | Description |
|---|---|---|
advertiser-id | required | The Advertiser Id |
country | required | The ISO 3166-1 alpha-2 country code |
Create Audience Segments
Create audience segments in bulk mode. Creates all audience segments with a valid configuration and returns their IDs with their advertiser IDs, names, and creation/update dates. One or multiple errors are returned for those that cannot be created.Update Audience Segments
Update audience segments in bulk mode. Updates the properties of all audience segments with a valid configuration and returns their IDs with their advertiser IDs, names, and creation/update dates. One or multiple errors are returned for those that cannot be updated.Search Audience Segments
Search audience segments by audience segment IDs, audience segment types, or advertiser IDs. It returns a list of audience segments that match the provided attributes. If present, the attributes are AND’ed together when applied (will only return the segments that satisfy ALL those conditions).Delete Audience Segments
Delete audience segments in bulk mode. Deletes the audience segments associated with the given audience IDs.Compute Audience Segment sizes
If you have already created one or more segments, and would like to know their size, you can do so by using tis endpoint. It returns the size of one or more audience segment IDs (if available and if supported). For those whose size cannot be retrieved, one or multiple errors are returned.Estimate Audience Segment size
If you know the structure of your segment, but have not created it yet, and would like to estimate its size, you can use this endpoint. It returs the size estimation for an audience segment (if available and if supported). If the size cannot be estimated, an error is returned. This endpoint is resource-intensive, this is why the bulk workflow is not supported.Manage Contact Lists
After creating an audience segment of the type contact list, you can use the following endpoints to update its content.Adding and Removing Users
Users can be added or removed from an audience segment with a PATCH request to the audience contact list endpoint with the specific audience segment id in the URL path. The request body requires the type of operation, the schema of the identifiers, and the list of the user identifiers to be added. In addition, if the identifier type is ‘gum’, an additional parameter, thegumCallerId, must also be included. Please note that the supported identifier types for Criteo audiences include: ‘email’ (Email Address in plain text, MD5, SHA256 or SHA256MD5-hashed), ‘madid’ (Mobile Ad Identifier), ‘identityLink’ (a user’s LiveRamp Identity Link), ‘gum’ (Criteo GUM cookie identifier), ‘customerid’ (only for Retail Media Customer Lists) and ‘phonenumber” (plain text or sha256 hashed phone numbers, only supported for advertisers in India).
gumCallerId or to get more information on this GUM sync, if needed.Clear phone number
A clear phone number needs to have the “+” sign and the country code, it can contain spaces or “-” or both. example: +33 01 23 45 67 89, +330123456789, +330123-45-6789Sha256 hashed phone number
The original clear phone number before sha256 should be normalized:- Trimmed E.164 format including the country code
- without the leading ”+” sign (so only 15 digits, at most): sha256 (for example,
internationalPhoneNumber.replaceAll(/[^0-9]/g, ""))
Adding Users
To add users to an audience segment, use the ‘add’ operation in the PATCH request as detailed below:Removing Users
To remove users from an audience segment, use the ‘remove’ operation in the PATCH request as detailed below:Deleting All Users
To delete all users from an audience segment, a DELETE request can be made to the audience segment contact list endpoint with the specified audience segment id in the URL path. The API will return an array with the specified audience-segment-id from which all users were deleted.Get Segment Statistics
Get the statistics of the contact list audience segment associated with the given ID. It returns the size and other statistics available for an audience segment of the type contact list. If the given ID is not of the type contact list, an error is returned.audience-segment-id is the Id of the Contact List segment.
Validation Errors
In addition to general API errors, you may encounter validation errors when creating or managing Audience Segments. Below is a list of error codes for Audience Segment Endpoints, and a more detailed description of their meaning. For more codes don’t hesitate to check also the Audiences validation errorsadvertiser-must-be-opt-in-for-data-sharing
Advertiser must be opt in for data sharing
brand-list-must-be-valid
Brand list must be valid
buying-power-must-be-valid
Buying power must be valid
cannot-create-contact-list
Contact list creation error
in-market-settings-must-be-defined
In-market segment settings must be defined
contact-list-incompatible-with-file
Contact list is incompatible with file
contact-list-statistics-not-supported
Contact list statistics are not supported on this segment
country-code-is-required
Country code is required
country-code-must-be-authorized
Country code must be authorized
country-code-must-be-valid
Country code must be valid
days-must-be-in-range
Days in omnichannel segment must be in range
event-type-must-be-valid
Event type must be valid
file-id-must-be-valid
File ID must be valid
gender-must-be-valid
Gender must be valid
interests-list-must-be-valid
Interest list must be valid
name-must-be-unique
Name must be unique
name-must-not-be-empty
Name must not be empty
name-must-not-be-too-long
Segment name property must not be too long
percentile-must-be-in-range
Percentile must be in range
poi-coordinates-must-be-unique
Points of interest coordinates must be unique
poi-coordinates-must-be-valid
Points of interest coordinates must be valid
poi-list-must-be-not-empty
Points of interest list must be nor null nor empty
poi-list-must-be-null-or-empty
Points of interest list must be null or empty
poi-radius-must-be-not-null
Location segment of type ‘Unknown’ must have a radius
poi-surface-must-be-valid
Points of interest surface area must be valid
price-range-must-be-valid
Price range must be valid
radius-must-be-in-range
RadiusInKm must be in range
registry-type-must-be-valid
Registry type must be valid
retargeting-segment-days-since-last-visit-are-not-compatible
Retargeting segment MinDaysSinceLastVisit and MaxDaysSinceLastVisit are not compatible
retargeting-segment-days-since-last-visit-are-not-in-acceptable-range
Retargeting segment MinDaysSinceLastVisit and MaxDaysSinceLastVisit are not in the range of acceptable values
segment-has-not-been-found
Segment does not exist
segment-must-have-valid-segment-id
Segment must have a valid segment ID
segment-must-not-be-used-in-audience
Segment must not be used in an audience
segment-not-found
Segment not found
segment-size-not-available
Segment size not available
segment-size-not-available
Segment size cannot be calculated
segment-size-not-supported
Segment size not supported
segment-size-too-small
Segment size is too small
type-must-be-the-same
Type must be the same
Target size must be within the supported rage
In Lookalike Audience Segments, given target size must be within the supported rage. Lower and Upper bound will be included in error details.
Seed segment does not belong to the same advertiser
For Lookalike Audience Segments, the seed segment (seedSegmentId input value) should have the same advertiser Id as the newly created Lookalike segment.
retargeting-segment-from-to-days-ago-are-not-compatible
The From days ago value should be lower than To days ago
retargeting-segment-from-to-days-ago-are-not-in-acceptable-range
Days must be in range: 400 >= ToDaysAgo > FromDaysAgo >= 0
audience-with-retargeting-segment-must-be-correctly-specified
The retargeting segment must be the unique segment in its audience