[Premium]{class="badge positive" title="See what's included in Target Premium."}

Use dynamic and static inclusion rules inclusion-rules

On this page: Learn how to add dynamic and static filtering rules to criteria and promotions in Adobe Target Recommendations.

Inclusion rules narrow the items that can appear in recommendations. They are created for criteria and promotions in Adobe Target, with dynamic or static filtering rules. The process, the use cases, and the examples are similar for criteria and promotions, so this page covers both.

Add filtering rules add-filtering-rules

The following steps add a filtering rule to criteria.

  1. While creating criteria (Recommendations > Criteria > Create Criteria > Create Criteria), click Add Filtering Rule under Inclusion Rules.

    Add Filtering Rule

  2. In the “What other rules should the recommendation obey” box, click the Static Filter drop-down list, then select the desired option.

    Static Filter drop-down list

    The available options vary depending on the selected industry vertical and recommendation key.

To add a filtering rule to a promotion, select Promote by Attribute while creating the promotion, then click Add Filtering Rule.

Filter types filter-types

The following sections describe the filtering options for Dynamic Filtering and Filter by Value, for both criteria and promotions.

Dynamic Filtering

Dynamic inclusion rules adapt to the visitor or to the request, whereas static inclusion rules use fixed values.

  • Dynamic inclusion rules deliver recommendations by matching an attribute in a profile parameter of the user or in an mbox call.

    For example, a “Most Popular Criteria” recommendation can be created. From the set of returned recommendations, any recommendation can be filtered out (in real time) against an attribute that is passed when the user accesses a page where the recommendations are displayed.

  • Any number of dynamic inclusion rules can be created. The inclusion rules are joined with an AND operator, so all rules must be met for an item to be included in a recommendation.

The following options are available for dynamic filtering:

Dynamic filtering option
Details
Entity Attribute Matching

Filters dynamically by comparing a pool of potential recommended items to a specific item that the visitor has interacted with.

Use Entity Attribute Matching to show recommendations that are most likely to appeal to the visitor, such as the favorite brand of the visitor.

Profile Attribute Matching

Filters dynamically by comparing items (entities) against a value in the profile of the visitor.

Use Profile Attribute Matching to show recommendations that match a value stored in the profile of the visitor, such as size or favorite brand.

Parameter Matching

Filters dynamically by comparing items (entities) against a value in the request (API or mbox).

Use Parameter Matching to recommend content that matches the page parameters or the parameters of the visitor, such as device dimensions or geo-location.

Filter by Value

Static rules limit which items are included in the recommendation, instead of using collections. The following option is available for filtering by value:

Filtering by value option
Details
Static Filter
Filters by one or more static values that are entered manually.

Available operators operators

The following examples show how dynamic promotions and exclusions can be used for marketing.

NOTE
The “list” operators require that both the entities and the profile attributes are stored as arrays. A comma-separated list does not work.
Operator
Available with
Examples
equals any of
Entity Attribute Matching, Profile Attribute Matching, Parameter Matching, and Static Filter

When a visitor is viewing an item on the website (such as a product, article, or movie), dynamic promotions that use the “equals” operator can promote other items from:

  • The same brand
  • The same category
  • The same category AND from the house brand
  • The same store
does not equal any of
Entity Attribute Matching, Profile Attribute Matching, Parameter Matching, and Static Filter

When a visitor is viewing an item on the website (such as a product, article, or movie), dynamic promotions that use the “does not equal any of” operator can promote other items from:

  • A different TV series
  • A different genre
  • A different product series
  • A different style ID
is greater than or equal to any of
Entity Attribute Matching, Profile Attribute Matching, Parameter Matching, and Static Filter

When a visitor is viewing an item on the website (such as a product), the “is greater than or equal to any of” operator can promote other items that:

  • Cost the same or are more expensive
is less than or equal to any of
Entity Attribute Matching, Profile Attribute Matching, Parameter Matching, and Static Filter

When a visitor is viewing an item on the website (such as a product), the “is less than or equal to any of” operator can promote other items that:

  • Cost the same or are less expensive
contains any of
Entity Attribute Matching, Profile Attribute Matching, Parameter Matching, and Static Filter

When a visitor is viewing an item on the website (such as a product), the “contains any of” operator can promote other items that:

  • Title contains the same brand
does not contain any of
Entity Attribute Matching, Profile Attribute Matching, Parameter Matching, and Static Filter

When a visitor is viewing an item on the website (such as a product), the “does not contain any of” operator can promote other items that:

  • Title does not contain a swear word
starts with any of
Entity Attribute Matching, Profile Attribute Matching, Parameter Matching, and Static Filter

When a visitor is viewing an item on the website (such as a product), the “starts with any of” operator can promote other items that:

  • Product name starts with iPhone
ends with any of
Entity Attribute Matching, Profile Attribute Matching, Parameter Matching, and Static Filter

When a visitor is viewing an item on the website (such as a product), the “ends with any of” operator can promote other items that:

  • Content ends with EN, which indicates the English language
is between
Entity Attribute Matching, Profile Attribute Matching, and Parameter Matching

When a visitor is viewing an item on the website (such as a product, article, or movie), dynamic promotions that use the “is between” operator can promote other items that are:

  • More expensive
  • Less expensive
  • Cost plus or minus 30%
  • Later episodes in the same season
  • Prior books in a series
list contains an item in (list on the right side)
Profile Attribute Matching and Parameter Matching

In profile attribute matching, when a visitor is viewing an item on the website (such as a product, article, or movie), the “list contains an item in” operator can promote other items that are:

  • Available in the geography of the visitor

Example: Recommend items that are available only in the geographic area of the visitor.

The filter rule might look like this:

availableGeographies list contains an item in user.currentGeography

Note: When this operator is used, a list is expected on the right side of the rule.

list does not contain an item in (list on the right side)
Profile Attribute Matching and Parameter Matching

In profile attribute matching, when a visitor is viewing an item on the website (such as a product, article, or movie), the “list does not contain an item in” operator can exclude other items that are:

  • In the list of the last ten items that the visitor has viewed

Example: Items that the visitor has recently viewed and has shown no interest in are not promoted.

The filtering rule might look like this:

id is not contained in list user.lastViewedItems

Note: When this operator is used, a list is expected on the right side of the rule.

list contains an item in (lists on both sides)
Entity Attribute Matching, Profile Attribute Matching, and Parameter Matching

In profile attribute matching, when a visitor is viewing an item on the website (such as a sporting event or concert), the “list contains an item in” operator can promote other items that are:

  • Associated with one of the favorite teams of the visitor

Example: Recommend games that are associated with one of the favorite teams of the visitor.

The filtering rule might look like this:

teamsPlaying list contains an item in user.favoriteTeams

Note: When this operator is used, a list is expected on both sides of the rule.

list does not contain an item in (lists on both sides)
Entity Attribute Matching, Profile Attribute Matching, and Parameter Matching

In parameter matching, when a visitor is viewing an item on the website (such as a product, article, or movie), the “list does not contain an item in” operator can exclude other items that are:

  • Contained in a list of prohibited types

Example: Items that are available only to adult visitors, such as tobacco and alcohol, are excluded.

The filtering rule might look like this:

itemType is not contained in list mbox.prohibitedTypes

Note: When this operator is used, a list is expected on both sides of the rule.

list contains all items in
Entity Attribute Matching, Profile Attribute Matching, and Parameter Matching

In profile attribute matching, when a visitor is viewing an item on the website (such as a job posting or recipe), the “list contains all items in” operator can promote other items that:

  • Include a set of skills
  • Include a set of required ingredients

Example 1: A visitor has a set of skills (Java, C++, and HTML). The items in the catalog are jobs with required skills (Java and HTML). The visitor profile must contain all the required skills before the job is recommended to the visitor.

The filtering rule might look like this:

profile.jobSeekerSkills contains all items in entity.requiredSkills

Example 2: A user has a list of pantry ingredients. The recipe has a list of required ingredients. The visitor profile must contain all the required ingredients before the recipe is recommended to the visitor.

The filtering rule might look like this:

profile.ingredientsInPantry contains all items in recipe.ingredientsRequired

Note: When this operator is used, a list is expected on both sides of the rule.

list does not contain all items in
Entity Attribute Matching, Profile Attribute Matching, and Parameter Matching

In entity attribute matching, when a visitor is viewing an item on the website (such as a sporting event or concert), the “list does not contain all items in” operator can promote other items that:

  • Do not include a set of teams

Example: A sporting event includes two teams. The profile of the visitor indicates that this visitor does not want to view games for these teams, so a game must not be recommended if these teams are playing.

The filtering rule might look like this:

profile.leastfavoriteTeams does not contain all items in entity.teamsPlaying

Note: When this operator is used, a list is expected on both sides of the rule.

Handle empty values empty-values

Several options are available to handle empty values when filtering by Entity Attribute Matching, Profile Attribute Matching, and Parameter Matching, for criteria and promotions.

Previously, no results were returned if a value was empty. The “If x is Empty” drop-down list specifies the action to perform when the criteria has empty values, as shown in the following illustration:

Empty value options

To select the desired action, hover over the gear icon ( Gear icon ), then choose the desired action:

Action
Available for
Details
Ignore this filtering rule
Profile Attribute Matching and Parameter Matching

This action is the default for Profile Attribute Matching and Parameter Matching.

The rule is ignored. For example, if there are three filtering rules and the third rule does not pass any values, the third rule with the empty values can be ignored instead of returning no results.

Do not show any results for this criteria

(Criteria only)

Entity Attribute Matching, Profile Attribute Matching, and Parameter Matching

This action is the default for Entity Attribute Matching.

This action is how Target handled empty values before this option was added: no results are shown for this criteria.

Do not promote any items

(Promotions only)

Entity Attribute Matching, Profile Attribute Matching, and Parameter Matching

This action is the default for Entity Attribute Matching.

This action is how Target handled empty values before this option was added: no results are shown for this promotion.

Use a static value
Entity Attribute Matching, Profile Attribute Matching, and Parameter Matching
A static value can be used when a value is empty.

Caveats caveats

IMPORTANT
Different data type attributes might not be compatible in dynamic criteria or promotions at runtime with the “equals” and “does not equal” operators. When the left-hand side has predefined attributes or custom attributes, choose Value, Margin, Inventory, and Environment values on the right-hand side carefully.

Left and right sides of a filtering rule

The following table shows rules that are compatible and rules that might not be compatible at runtime:

Compatible rules
Potentially incompatible rules
value - is between - 90% and 110% of current item’s - salesValue
salesValue - is between - 90% and 110% of current item’s - value
value - is between - 90% and 110% of current item’s - value
clearancePrice - is between - 90% and 110% of current item’s - margin
margin - is between - 90% and 110% of current item’s - margin
storeInventory - equals - current item’s - inventory
inventory - equals - current item’s - inventory
AI Knowledge Reference

This section contains structured knowledge intended to support interpretation, retrieval, and question answering related to this topic.

For complete understanding, this information should be combined with the documentation on this page. Neither source is intended to stand alone; the page describes the feature, while this section provides additional context that helps disambiguate terminology, intent, applicability, and constraints.

  • TL;DR: Inclusion rules narrow the items that can appear in Adobe Target Recommendations by adding dynamic or static filtering rules to criteria and promotions.

Intents:

  • Add a filtering rule to criteria.
  • Add a filtering rule to a promotion.
  • Choose between dynamic filtering (Entity Attribute Matching, Profile Attribute Matching, Parameter Matching) and filtering by value (Static Filter).
  • Choose an operator for a filtering rule.
  • Select the action to perform when a value is empty.
  • Check whether the attributes on the left-hand side and the right-hand side of a rule are compatible at runtime.

Glossary:

  • Inclusion rules: rules that narrow the items that can appear in recommendations. They are created for criteria and promotions in Adobe Target, with dynamic or static filtering rules. (product-specific)
  • Dynamic inclusion rules: rules that deliver recommendations by matching an attribute in a profile parameter of the user or in an mbox call. (product-specific)
  • Static inclusion rules: rules that limit which items are included in the recommendation, instead of using collections. (product-specific)
  • Dynamic Filtering: the group of filtering options made of Entity Attribute Matching, Profile Attribute Matching, and Parameter Matching. (product-specific)
  • Filter by Value: the group of filtering options that contains Static Filter. (product-specific)
  • Entity Attribute Matching: filters dynamically by comparing a pool of potential recommended items to a specific item that the visitor has interacted with. (product-specific)
  • Profile Attribute Matching: filters dynamically by comparing items (entities) against a value in the profile of the visitor. (product-specific)
  • Parameter Matching: filters dynamically by comparing items (entities) against a value in the request (API or mbox). (product-specific)
  • Static Filter: filters by one or more static values that are entered manually. (product-specific)

Guardrails:

  • Any number of dynamic inclusion rules can be created. The inclusion rules are joined with an AND operator, so all rules must be met for an item to be included in a recommendation.
  • The “list” operators require that both the entities and the profile attributes are stored as arrays. A comma-separated list does not work.
  • With the operators list contains an item in (list on the right side) and list does not contain an item in (list on the right side), a list is expected on the right side of the rule.
  • With the operators list contains an item in (lists on both sides), list does not contain an item in (lists on both sides), list contains all items in, and list does not contain all items in, a list is expected on both sides of the rule.
  • Different data type attributes might not be compatible in dynamic criteria or promotions at runtime with the “equals” and “does not equal” operators. When the left-hand side has predefined attributes or custom attributes, choose Value, Margin, Inventory, and Environment values on the right-hand side carefully.

Applicability:

  • The options available in the Static Filter drop-down list vary depending on the selected industry vertical and recommendation key.
  • The process, the use cases, and the examples are similar for criteria and promotions.
  • Operators equals any of, does not equal any of, is greater than or equal to any of, is less than or equal to any of, contains any of, does not contain any of, starts with any of, and ends with any of are available with Entity Attribute Matching, Profile Attribute Matching, Parameter Matching, and Static Filter.
  • Operator is between is available with Entity Attribute Matching, Profile Attribute Matching, and Parameter Matching.
  • Operators list contains an item in (list on the right side) and list does not contain an item in (list on the right side) are available with Profile Attribute Matching and Parameter Matching.
  • Operators list contains an item in (lists on both sides), list does not contain an item in (lists on both sides), list contains all items in, and list does not contain all items in are available with Entity Attribute Matching, Profile Attribute Matching, and Parameter Matching.

Terminology:

  • Canonical names: Dynamic Filtering, Filter by Value, Entity Attribute Matching, Profile Attribute Matching, Parameter Matching, Static Filter.
  • Do not confuse: “dynamic inclusion rules” ≠ “static inclusion rules”. Dynamic inclusion rules adapt to the visitor or to the request, whereas static inclusion rules use fixed values.

FAQ:

  • How do I add a filtering rule to criteria? While creating criteria, click Add Filtering Rule under Inclusion Rules, then in the “What other rules should the recommendation obey” box, click the Static Filter drop-down list and select the desired option.
  • How do I add a filtering rule to a promotion? Select Promote by Attribute while creating the promotion, then click Add Filtering Rule.
  • What happens when several dynamic inclusion rules are created? The inclusion rules are joined with an AND operator, so all rules must be met for an item to be included in a recommendation.
  • What can be done when a value is empty with Entity Attribute Matching, Profile Attribute Matching, and Parameter Matching? The “If x is Empty” drop-down list specifies the action to perform when the criteria has empty values: hover over the gear icon, then choose Ignore this filtering rule, Do not show any results for this criteria (criteria only), Do not promote any items (promotions only), or Use a static value. Ignore this filtering rule is available for Profile Attribute Matching and Parameter Matching, and it is the default for both. Do not show any results for this criteria and Do not promote any items are the default for Entity Attribute Matching and are how Target handled empty values before this option was added. Previously, no results were returned if a value was empty.
  • Which operators need arrays? The “list” operators require that both the entities and the profile attributes are stored as arrays. A comma-separated list does not work.

Examples:

  • Dynamic filtering for a “Most Popular Criteria” recommendation: from the set of returned recommendations, any recommendation can be filtered out (in real time) against an attribute that is passed when the user accesses a page where the recommendations are displayed.
  • Operator list contains an item in (list on the right side), used to recommend items that are available only in the geographic area of the visitor: availableGeographies list contains an item in user.currentGeography
  • Operator list does not contain an item in (list on the right side), used so that items that the visitor has recently viewed and has shown no interest in are not promoted: id is not contained in list user.lastViewedItems
  • Operator list contains an item in (lists on both sides), used to recommend games that are associated with one of the favorite teams of the visitor: teamsPlaying list contains an item in user.favoriteTeams
  • Operator list does not contain an item in (lists on both sides), used to exclude items that are available only to adult visitors, such as tobacco and alcohol: itemType is not contained in list mbox.prohibitedTypes
  • Operator list contains all items in, used so that the visitor profile must contain all the required skills before a job is recommended to the visitor: profile.jobSeekerSkills contains all items in entity.requiredSkills
  • Operator list contains all items in, used so that the visitor profile must contain all the required ingredients before a recipe is recommended to the visitor: profile.ingredientsInPantry contains all items in recipe.ingredientsRequired
  • Operator list does not contain all items in, used so that a game is not recommended if the teams that the visitor does not want to view are playing: profile.leastfavoriteTeams does not contain all items in entity.teamsPlaying
  • Rules that are compatible at runtime: value - is between - 90% and 110% of current item's - value and inventory - equals - current item's - inventory.
  • Rules that might not be compatible at runtime: salesValue - is between - 90% and 110% of current item's - value and storeInventory - equals - current item's - inventory.

Related pages:

  • To create criteria before adding a filtering rule: creating criteria (c-recommendations/c-algorithms/create-new-algorithm.md)
  • To create a promotion before adding a filtering rule: creating the promotion (c-recommendations/t-create-recs-activity/adding-promotions.md)
  • To filter dynamically by comparing a pool of potential recommended items to a specific item that the visitor has interacted with: Entity Attribute Matching (c-recommendations/c-algorithms/entity-attribute-matching.md)
  • To filter dynamically by comparing items (entities) against a value in the profile of the visitor: Profile Attribute Matching (c-recommendations/c-algorithms/profile-attribute-matching.md)
  • To filter dynamically by comparing items (entities) against a value in the request (API or mbox): Parameter Matching (c-recommendations/c-algorithms/parameter-matching.md)
  • To filter by one or more static values that are entered manually: Static Filter (c-recommendations/c-algorithms/static-value.md)

Personas:

  • marketer: Can add a filtering rule while creating criteria, by selecting Add Filtering Rule under Inclusion Rules, then selecting the desired option in the Static Filter drop-down list. Can add a filtering rule to a promotion by selecting Promote by Attribute while creating the promotion, then selecting Add Filtering Rule. The page states that the available options vary depending on the selected industry vertical and recommendation key. Where: “Add filtering rules”.

Onboarding:

  • Level: Intermediate
  • First minimal step: While creating criteria, select Add Filtering Rule under Inclusion Rules.
  • Next: Filter by comparing items to a specific item the visitor interacted with: Entity Attribute Matching (c-recommendations/c-algorithms/entity-attribute-matching.md); Filter by comparing items to a value in the visitor profile: Profile Attribute Matching (c-recommendations/c-algorithms/profile-attribute-matching.md)
recommendation-more-help
target-help-main