ConstraintGroup
A constraint group defining the supply placements and countries or regions where a location is blocked or allowed to serve ads.
Declaration
object ConstraintGroupProperties
| Name | Type | Description |
|---|---|---|
supplyPlacement | [string] | Supply placement identifiers scoped by this constraint. A generic string array with no enumerated values. Example values: |
countryOrRegion | [string] | ISO 3166-1 alpha-2 country or region codes scoped by this constraint. Example values: |
Discussion
The ConstraintGroup object defines a pairing of supply placements and geographic markets that collectively describe where an eligibility rule applies. The Eligibility objects embed it to specify the exact scope of blocking or allowing a business entity from serving ads.
When you populate both supplyPlacement and countryOrRegion, the constraint applies to the intersection of those placements and markets.
Example
{
"supplyPlacement": [
"SEARCH_TAB",
"TODAY_TAB"
],
"countryOrRegion": [
"US",
"GB"
]
}