At the Line Item level, you can apply Content Targeting using various operators to include or exclude ad requests based on specific content metadata.
Available Operators:
- is any of
- is none of
- contains
- not contains
These options allow you to combine and exclude targeting conditions to create flexible and precise targeting rules.
The main difference is:
- is any of and is none of work with exact value matching.
- contains and not contains work with nested or partial matches, which is especially relevant for fields like keywords.
For example, when to use them:
- is any of — for strict fields like genre or language.
- contains — for keywords, categories, or lists.
- is none of — to exclude exact values.
- not contains — to exclude values within strings or arrays.
Example Use Case: How Targeting Rules Are Applied
Let’s say you want to allow ad requests that meet one of the following conditions:
-
The
genre
is exactly"comedy"
OR -
The
category
is movies and thekeywords
contain"comedy"
Operator | Rule Applied | Request Example | Result |
is any of | genre is any of [comedy, drama] | "genre": "comedy, drama" "genre": "comedy" "genre": "drama" |
✅ Pass |
is any of | genre is any of [comedy, drama] | "genre":"comedian" "genre": "sport" ”genre":"dramatv100" |
❌ Fail |
is none of | genre is none of [drama] | "genre": "history, horror" "genre": "melodrama" |
✅ Pass |
is none of | genre is none of [drama] | "genre": "drama, horror" genre": "drama" |
❌ Fail |
contains | keywords contains [comedy] | "keywords": "comedyan" "keywords" : "comedy" "keywords":"comedyant" |
✅ Pass |
contains | keywords contains [comedy] | "keywords": "sport" "keywords" :"athletic" "keywords":"comediant" |
❌ Fail |
not contains | keywords not contains [comedy] | "keywords": "sports, drama" "keywords":"news, newspaper" |
✅ Pass |
not contains | keywords not contains [comed] | "keywords": "comedian, drama" "keywords":" comediant" |
❌ Fail |
Required Parameter Checkbox
Each content targeting rule includes a "Required Parameter" checkbox.
When enabled, it ensures the parameter AND its value must be present in the ad request.
Example:
If you set "genre" is any of "drama"
and check the "Required Parameter" box, only requests that include:
-
&content_genre=drama
(for tags) -
"genre": "drama"
(for RTB/Prebid)
will be matched and processed by the Line Item.
This avoids processing incomplete ad requests such as &content_genre=
.