...
Panel | ||||
---|---|---|---|---|
On This Page:
Related Pages: |
How Revive Adserver evaluates the order of delivery
...
rules.
When more than one delivery limitation rule is in use, both AND and OR options can be used to affect the order that delivery limitations rules are evaluated.
...
...
Operator Precedence
Revive Adserver supports numerous delivery limitations rules for banners:
- Client Delivery Rules;
- Geotargeting Delivery LimitationsRules;
- Site Delivery LimitationsRules; and
- Time Delivery LimitationsRules.
Whenever more than one delivery limitation rule is used for a single banner, it is possible to use either the logical AND or OR option to define how the delivery limitations rules are applied. For example:
Revive Adserver's logical operators are applied as PHP logical operators, where AND takes precedence over OR.
...
- The client browser is any version of Internet Explorer
- OR
- The client language is English AND the day of the week is a weekday.
Non-Trivial Ordering
The fact that Revive Adserver applies the AND and OR logical operators in the same order as PHP means that it is non-trivial to apply the logical operators in reverse order. For example, say that the desire is to deliver a banner when:
...
In this case, a potential solution is to duplicate one of the limitationsdelivery rules:
This is evaluated as:
...
This is, logically, the same as the original requirement, but expressed in a slightly more complex way.
...
Delivery Rule Sets
While duplication of delivery limitations rules is a potential solution to altering the default precedence ordering of limitationsdelivery rules, this can quickly become complex and difficult to understand if there are more than just a few limitationsdelivery rules.
In this case, it generally becomes far simpler to use targeting channels delivery rule sets.
Revive Adserver evaluates each targeting channel delivery rule set as an independent unit of limitationsdelivery rules. Therefore, it would be possible to create a targeting channel delivery rule set called "Internet Explorer OR English" (for example), with the following limitationsdelivery rules:
- The client browser is any version of Internet Explorer OR the client language is English
This targeting channel delivery rule set could then be combined with the other limitationdelivery rule:
- Internet Explorer OR English (Targeting Channeli.e. the Delivery Rule Set)
- AND
- The day of the week is a weekday.
Revive Adserver will, in this case, firstly evaluate the targeting channeldelivery rule set, and determine if the browser is Internet Explorer , OR if the client language is English. If either one of these is true, then the targeting channel delivery rule set will be considered as okay, and Revive Adserver will then evaluate if it is a weekday. Again, if so, then both limitations delivery rules (the channel delivery rule set and the day of the week) will be valid, so the banner will deliver.
In this case, the use of the targeting channel delivery rule set has meant that the OR operator has effectively been applied (within the targeting channeldelivery rule set) first, and then the result is then effectively applied with the AND operator - which is the reverse of the default operator precedence that would have otherwise been applied without the targeting channeldelivery rule set.