type AdUnitTargeting (v202411)

  • AdUnitTargeting is used to include or exclude ad units for targeting purposes.

  • It allows specifying ad unit IDs and whether to include descendants of those ad units in targeting.

  • By default, targeting an ad unit also targets all of its descendants.

  • AdUnitTargeting is part of the Google Ad Manager API and uses a specific namespace for identification.

Represents targeted or excluded ad units.


Namespace
https://www.google.com/apis/ads/publisher/v202411

Field

adUnitId

xsd:string

Included or excluded ad unit id.

includeDescendants

xsd:boolean

Whether or not all descendants are included (or excluded) as part of including (or excluding) this ad unit. By default, the value is true which means targeting this ad unit will target all of its descendants.