Audience Builder
Audiences specified by a boolean query matching data in your identity graph
Last updated
Audiences specified by a boolean query matching data in your identity graph
Last updated
Query audiences enable you to segment your identity graph into highly targetable groups, using expressions that draw upon a variety of data points such as memberships in other audiences, matches to trait values, and associations with sources.
This segmentation is critical for deploying precise marketing strategies and data collaborations across a multitude of platforms, including Optable clean rooms, DSPs and storage solutions, as well as for real-time targeting through Optable SDKs.
Once data is loaded into your DCN, you can build audiences using query expressions to select identity clusters based on advanced criteria, such as data source association and trait values.
For example, one could define a query audience that semantically represents identity clusters that are members of audience #8 and include data from source #2.
Expressions can reference the following entities, also known as literals:
sources
id types
traits
events
audiences
matches
prospecting
Expressions combine literals (and sub-expressions) with the following boolean operators:
and
Combines sub-expressions with the boolean "and", also known as logical conjunction
or
Combines sub-expressions with the boolean "or", also known as logical disjunction
not
Negates an expression with the boolean "not", also known as logical negation
Note that query audiences can reference a maximum of 32 literals. This limits the depth and number of nodes in the query and ensures reasonable execution time.
To create a query audience, you need a name and a query expression. You can create the audience from the DCN UI or by using the CLI and the audience create
sub-command.
The expression is an S-expression. The supported operands are:
or
specifies a logical OR between sub-expressions
and
specifies a logical AND between sub-expressions
audience
is followed by one argument, the integer ID of a matched audience, and specifies membership to a matched audience
source
trait-eq
trait-ne
trait-contains
trait-ci-contains
trait-regex
trait-gt
trait-gte
trait-lt
trait-lte
Note that only a subset of expressions can be rendered in the DCN's query audience editor UI. If the expression of a query audience created with the CLI does not match what the audience editor UI expects, the a read-only JSON representation of the expression will be shown in the UI.
The audience query expression is also parsed into a JSON representation which is returned by the audience API and when running optable-cli audience get
or optable-cli audience list
CLI commands.
Selects clusters that contain data from a given
Selects clusters that contain at least one of the selected
Selects clusters that contain key and values based on selected
Selects clusters that contain and properties filtered using recency and frequency of a given event type. (occurring X times within the past Y days)
Selects clusters that are members of the specified
Selects clusters that are members of a given
Selects clusters that are members of a given model result
is followed by one argument, the integer ID of a , and specifies a match on a
is followed by two arguments, a string key and a string value, and specifies an equality match on a trait key value associated with .
is followed by two arguments, a string key and a string value, and specifies an inequality match on a trait key value associated with .
is followed by two arguments, a string key and a string value, and specifies a case-sensitive substring match on a trait key value associated with .
is followed by two arguments, a string key and a string value, and specifies a case-insensitive substring match on a trait key value associated with .
is followed by two arguments, a string key and a regular expression, and specifies a match on a trait key value associated with .
is followed by two arguments, a string key and a string value, and specifies a greater-than match on a trait key value associated with
is followed by two arguments, a string key and a string value, and specifies a greater-than-or-equal match on a trait key value associated with
is followed by two arguments, a string key and a string value, and specifies a less-than match on a trait key value associated with
is followed by two arguments, a string key and a string value, and specifies a less-than-or-equal match on a trait key value associated with