Targeting
type Targeting = {
geography?: { excluded: boolean, value: string[] };
domain?: { excluded: boolean, value: string[] };
site?: { excluded: boolean, value: number[] };
tagId?: { excluded: boolean, value: string[] };
page?: { excluded: boolean, value: string[] };
device?: { excluded: boolean, value: string[] };
os?: { excluded: boolean, value: string[] };
browser?: { excluded: boolean, value: string[] };
connection?: { excluded: boolean, value: string[] };
browserLanguage?: { excluded: boolean, value: string[] };
keyword?: { excluded: boolean, value: string[] };
firstId?: { excluded: boolean, value: string[] };
dayandtime?: { excluded: boolean, value: DayAndTime[] };
viewabilityThreshold?: { value: number };
impData?: DataTargeting[];
siteAppData?: DataTargeting[];
userData?: DataTargeting[];
};
type DataTargeting = {
excluded: boolean;
value: Record<string, string[]>;
};Attribute reference
Geography & Inventory
Attribute
Matches against
Value type
Example
Domain matching rules
Device & environment
Attribute
Matches against
Example
Content & Identity
Attribute
Matches against
Example
Time & viewability
Attribute
Description
Data targeting
Attribute
Reads from
Notes
Examples
Include specific countries
Exclude specific domains
Target mobile devices only
Combine multiple attributes (AND logic)
Day-and-time targeting
User data targeting (user.ext.data)
user.ext.data)Bid request reference
Example 1 — single audience inclusion
Example 2 — multi-key conjunction (premium AND sports)
Example 3 — included + excluded coexist
Example 4 — multi-value OR within a key
Example 5 — split-level user data targeting
Behaviour when user.ext.data is missing
user.ext.data is missingRule type
Outcome
Site/app data targeting (site.ext.data → app.ext.data)
site.ext.data → app.ext.data)Bid request reference (web)
Bid request reference (in-app)
Example 1 — vertical inclusion
Example 2 — IAB taxonomy + sentiment
Example 3 — brand safety exclusion
Example 4 — combined include + exclude
Behaviour when both site.ext.data and app.ext.data are missing
site.ext.data and app.ext.data are missingRule type
Outcome
Impression data targeting (imp.ext.data)
imp.ext.data)Bid request reference
Example 1 — above-the-fold only
Example 2 — first impression of the slot (no refresh)
Example 3 — slot context match
Example 4 — combined slot rules
Combining all three data scopes
Last updated
Was this helpful?