Prioritized rules allow you to filter through a feed up to eight times to find the closest rule match.
Each rule filters one or more filterable columns. For example, you can create two rules, filtering (1) by offer ID and city or (2) by offer ID and state. When multiple filterable columns are filtered at the same time (e.g. A and B and C), this is considered a single rule. When multiple columns are filtered separately (e.g. A or B or C), these are considered three separate rules.
You can have up to eight rules, including the default rule. The default rule should be the lowest prioritized rule.The components of a rule
Within the Studio UI, rules have several different components. Let's take a look at what makes up a rule:
- Priority: Order the rules from 1-8 depending on the hierarchy in which they should apply.
- Summary: This is auto-generated based on the filterable columns selected in the rule.
- Rule name: The user can set an optional rule name.
- Filter switches: Each filterable column has a YES/NO filter switch. Choosing Yes under "Auto-filter" will add the column in the current rule.
- Filterable columns: These provide the foundation of the rule.
- If the field type is "Custom value" or "Remarketing key", then there is also a text box for specifying the request key.
- If the field type is "Boolean", then there are also True/False buttons for selecting the boolean value.
- Allow rows with empty values: Checking this box means that all values in that filterable column are eligible to be served, including blank cells. Typically, this box is left unchecked, with the exception of the default rule.
- In the Studio UI, complete the field type setup in Step 2: Manage Data. This step is important because only filterable field types will be eligible for use with prioritized rules (e.g. DCM IDs are filterable; however, text is not).
- Navigate to Step 3: Manage Rules.
- In the "Type" drop-down, select Prioritized.
- Click the Manage button to open the prioritized rules window.
- Click New rule to begin creating the prioritized rules.
- In the "Auto-filter" column, change the filter switch to YES for each filterable column that should be included in the rule. Repeat for each rule.
- Make sure the rules are in the correct, prioritized order by dragging and dropping the rules into place or changing the rule number. Repeat for each rule.
Preview dynamic ads using prioritized rules
Once you complete the profile setup and you've associated creatives to the profile, you can preview your ad in the Studio UI in Step 5: Preview. The dynamic preview takes prioritized rules into consideration.
Example: Preview prioritized rules
Suppose you have the following setup: Rule 1 filters on
Hotel_id; Rule 2 filters on
Destination_id; Rule 3 is a default. In Step 5: Preview in the Studio UI, there are parameter fields for both Hotel_id and Destination_id.
Hotel_idis blank and the value of
37, then the preview will show a creative for
Destination_id = 37because there was no input for Rule 1.
- If there were no matches for
Destination_id, then a default creative will show.
Destination_idare both filled and both have rows with eligible content, then a creative for Rule 1,
Hotel_id, will be displayed.
Frequently Asked QuestionsCan I create a rule based on filterable columns from two different feeds?
No. Prioritized rules are configured at the feed level, so rules can only be created for filterable columns in the same feed. You cannot create rules based on filterable columns from different feeds.
A filterable column must be checked as filterable in Step 2: Manage Data in order to be eligible for use with prioritized rules. Confirm that the column is checked as filterable in Step 2.
Studio will filter through the feed until it finds a rule that does have correctly formatted, valid values in the filtering column. For example, let's say Rule 1 filters on geo-targeting in Column A. If a row in Column A has an incorrectly formatted value, it will not be served, and Studio will move onto the next prioritized rule. Rule 2 filters on Column B. Column B contains correctly formatted values, so Studio will serve one of the rows with an eligible value in Column B, even if it is the same row that was rejected from the first rule. Essentially, the row with invalid content in Column A for Rule 1 will not be excluded in Rule 2, since Rule 2 filters on Column B.
No, you do not have to create a default rule in the prioritized rules UI as long as the default column is designated in Step 2: Manage Data. However, it's good practice to set a default rule if there is space.
Checking that box means that for that particular filterable column, an empty cell means that any value is eligible. This is typically used for the default rule. However, if you have a setup where multiple columns are getting filtered in one rule, it may make sense to check this box, because not every filtering column may contain a value.