Audiences
Audiences have some specific parameters, which can be Required, Optional or Computed (filled automatically after Audience creation)Field Name | Type | Optional / Required / Computed | Description |
|---|---|---|---|
id | String | Computed | Unique ID of the audience |
name | String | Required | Name of the audience. It must be unique per advertiser. |
description | String | Optional | Description of the audience |
createdAt | String | Computed | ISO-8601 timestamp in UTC of audience creation (read-only) |
updatedAt | String | Computed | ISO-8601 timestamp in UTC of audience update (read-only) |
advertiserId | String | Required | Advertiser associated to the audience |
adSetIds | String Array | Computed | Ad sets associated to the audience (read-only). |
algebra | Required | Algebra Node with the definition of how the different segments are mixed to create the audience using logical operators: AND, OR, NOT. |
Create Audiences
Creates all Audiences with a valid configuration and returns them. For those that cannot be created, one or multiple errors are returned.Update Audiences
Updates the properties of all audiences with a valid configuration and returns them. For those that cannot be updated, one or multiple errors are returned.Search Audiences
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, advertiser IDs, segment IDs and/or ad set IDs.Name | Required / Optional | Description |
|---|---|---|
limit | optional | The number of elements to be returned. The default is 50 and the maximum is 100. |
offset | optional | The (zero-based) offset into the collection. The default is 0. |
Delete Audiences
Deletes the audiences associated with the given audience IDs.Compute Audiences sizes
If you have already created an audience, and would like to use it’s size, you can use this endpoint. It returns the size of one or more audience IDs (if available and if supported). For those whose size cannot be retrieved, one or multiple errors are returned.Estimate Audience size
If you have the structure of the audience, but have not created it yet, and would like to estimate it’s size, you can use this endpoint. It returns the size estimation for an audience (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.Validation Errors
In addition to general API errors, you may encounter validation errors when creating or managing Audiences and Segments. Below is a list of error codes for Audience endpoints and a more detailed description of their meaning.empty-data-objectCannot have an empty data object
pagination-limit-too-bigPagination limit is too big
audience-must-contain-only-existing-segmentsAudience must contain only existing segments
audience-not-foundAudience not found
audience-size-not-availableAudience size not available
audience-size-not-supportedAudience size not supported
audience-size-too-smallAudience size is too small
country-code-must-be-validCountry code must be valid
country-code-must-be-authorizedCountry code must be authorized
country-code-is-requiredCountry code is required
buying-power-must-be-validBuying power must be valid
brand-list-must-be-validBrand list must be valid
interests-list-must-be-validInterest list must be valid
gender-must-be-validGender must be valid
registry-type-must-be-validRegistry type must be valid
price-range-must-be-validPrice range must be valid
poi-list-must-be-not-emptyPoints of interest list must be nor null nor empty
poi-list-must-be-null-or-emptyPoints of interest list must be null or empty
radius-must-be-in-rangeRadiusInKm must be in range
poi-coordinates-must-be-validPoints of interest coordinates must be valid
poi-surface-must-be-validPoints of interest surface area must be valid
poi-radius-must-be-not-nullLocation segment of type ‘PointOfInterest’ must have a radius
segment-not-foundSegment not found
segment-size-not-availableSegment size not available
segment-size-not-supportedSegment size not supported
segment-size-too-smallSegment size is too small
Audience
undefined-advertiser-idCannot have an undefined advertiser ID
payload-too-bigCannot create more than 50 audiences at a time
payload-too-bigCannot update more than 50 audiences at a time
non-parsable-idOne or more IDs cannot be parsed
duplicate-idAudience ID cannot be duplicated
audience-must-not-be-used-in-non-archived-ad-setAudience must not be used in an active ad set
audience-algebra-and-or-nodes-must-include-more-than-one-nodeAudience algebra “and” and “or” nodes must include more than one node
audience-with-similar-segment-must-be-correctly-specifiedAudience with similar segment must be correctly specified
audience-must-contain-included-segment-or-only-excluded-contact-listAudience must contain included segment or only excluded contact list
audience-cannot-switch-to-from-similarAudience cannot switch to/from similar
audience-cannot-switch-to-from-pushbackAudience cannot switch to/from pushback
audience-name-must-be-uniqueAudience name must be unique
name-must-not-be-emptyAudience name property must not be empty
advertiser-must-be-opt-in-for-data-sharingAdvertiser must be opt in for data sharing
Segment
undefined-advertiser-idCannot have an undefined advertiser ID
undefined-segment-typeCannot have a segment object without any type defined
multiple-segment-typesCannot have a segment object with multiple types defined
duplicate-nameCannot have duplicated segment names
payload-too-bigCannot create more than 50 segments at a time
payload-too-bigCannot update more than 50 segments at a time
non-parsable-idOne or more IDs cannot be parsed
duplicate-idSegment ID cannot be duplicated
name-must-not-be-emptyName must not be empty
segment-must-not-be-used-in-audienceSegment must not be used in an audience
commerce-settings-must-be-definedCommerce segment settings must be defined
event-type-must-be-validEvent type must be valid
days-must-be-in-rangeDays in omnichannel segment must be in range
cannot-create-contact-listContact list creation error
name-must-be-uniqueName must be unique
type-must-be-the-sameType must be the same
type-must-be-the-sameType must be the same