The combined audiences API allows you to create new audiences, by combining existing audiences from My Audiences and/or Marketplace Audiences.
End to end flow
-
Obtain a list of available audiences to combine.
-
Using the above IDs, build 1 or more audience components:
- Each audience component object consists of 1 or more IDs, with a given relation:
AND
/OR
/NOT
- Sample objects:
{ "relation": "AND", "audiences_ids": [ 11, 21, 23 ] }
{ "relation": "NOT", "audiences_ids": [ 12, 22 ] }
{ "relation": "OR", "audiences_ids": [ 13, 23 ] }
- Each audience component object consists of 1 or more IDs, with a given relation:
-
Create a combined audience. The request object must contain the following fields:
-
audience_name
-
description
-
combined_audience_components
- a collection of audience component objects.The system will combine these components via an
AND
operation. These combined components essentially define your combined audience.{ "audience_name": "My audience name", "description": "My audience description", "combined_audience_components": [ { "relation": "AND", "audiences_ids": [ 11, 21, 23 ] }, { "relation": "NOT", "audiences_ids": [ 12, 22 ] }, { "relation": "OR", "audiences_ids": [ 13, 23 ] } ] }
-