type AdUnitTargeting (v202508)

  • AdUnitTargeting represents targeted or excluded ad units within various services.

  • AdUnitTargeting has two fields: adUnitId, which is the included or excluded ad unit ID, and includeDescendants, which is a boolean indicating if descendants are included or excluded.

  • The includeDescendants field defaults to true, meaning targeting an ad unit will also target its descendants.

  • The namespace for AdUnitTargeting is https://www.google.com/apis/ads/publisher/v202508.

Represents targeted or excluded ad units.


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

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.