Create a Trait Rule
Rules (or expressions) consist of individual or groups of key-value pairs. Comparison operators set the relationship between key-value pairs. To create a rule,provide a key, a value, select an operator, and click Add Rule.
Complete the required fields in the Basic Information section before creating trait rules.
-
Expand the Trait Expression section and enter a key and value name. This creates a
signal
.NOTE
Include thec_
prefix (or any other naming convention) for key variable if your event calls send data to Audience Manager using that syntax. -
Select a comparison operator from the Operator dropdown. The comparison operator evaluates the relationship between the elements in a signal.
NOTE
The Boolean OR operator establishes the relationship between multiple signals within a group and cannot be changed. -
Click Add Rule. The saved rule appears in the traits workspace above the data entry fields.
Example
In the example below, a user has created a new trait rule based on the product ID. To build this rule, the user provided the key productkey
linked with an equals operator ( ==
) to the value 2093
.
Clicking Add Rule saves and moves the trait into the Expression Builder workspace.