Contents

ConstraintGroup

A constraint group defining the supply placements and countries or regions where a location is blocked or allowed to serve ads.

Declaration

object ConstraintGroup

Properties

NameTypeDescription
supplyPlacement[string]

Supply placement identifiers scoped by this constraint. A generic string array with no enumerated values. Example values: SEARCH_TAB, TODAY_TAB, APPSTORE_SEARCH_RESULTS, APPSTORE_TODAY_TAB.

countryOrRegion[string]

ISO 3166-1 alpha-2 country or region codes scoped by this constraint. Example values: US, GB.

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"
  ]
}

See Also