InventoryTargeting

Targeted ad units and AU placements are applied with logical OR. Example:

(au:1 OR au:2 OR au_placement:5) AND (NOT (au:3))

JSON representation
{
  "targetedAdUnits": [
    {
      object (AdUnitTargeting)
    }
  ],
  "excludedAdUnits": [
    {
      object (AdUnitTargeting)
    }
  ],
  "targetedPlacements": [
    string
  ]
}
Fields
targetedAdUnits[]

object (AdUnitTargeting)

Optional. A list of ad units that should be targeted/included.

excludedAdUnits[]

object (AdUnitTargeting)

Optional. A list of ad units that should be excluded.

Excluded AUs take precedence over targeted AUs. In fact an AU can be excluded only if one of its ancestors is targeted. Subsequently child AUs of an excluded AU can not be targeted (except through a Placement).

targetedPlacements[]

string

Optional. The resource names of the placements that should be targeted/included.

AdUnitTargeting

Specifies an ad unit and (optionally) its descendants.

JSON representation
{
  "includeDescendants": boolean,
  "adUnit": string
}
Fields
includeDescendants

boolean

Whether this ad unit's children should be targeted/excluded as well.

adUnit

string

Optional. The resource name of this ad unit.