type AdUnitTargeting (v202411)

  • AdUnitTargeting allows publishers to include or exclude specific ad units for targeting.

  • It is defined within the namespace https://www.google.com/apis/ads/publisher/v202411.

  • Targeting can be extended to descendant ad units using the includeDescendants field, which is true by default.

  • AdUnitTargeting utilizes two main fields: adUnitId for specifying the targeted/excluded unit and includeDescendants for controlling descendant inclusion.

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.