type AdUnitTargeting (v202408)
Represents targeted or excluded ad units.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202408
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.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-08-20 UTC.
[null,null,["Last updated 2024-08-20 UTC."],[[["AdUnitTargeting allows publishers to include or exclude specific ad units for ad delivery."],["Targeting can be further refined by including or excluding all descendant ad units of a selected parent ad unit."],["AdUnitTargeting objects are part of the Google Ad Manager API and reside within a specific namespace for version 202408."],["Two key properties define AdUnitTargeting: `adUnitId` which specifies the targeted or excluded ad unit ID and `includeDescendants`, a boolean controlling whether descendants are included in the targeting."]]],["The content details `AdUnitTargeting`, which manages ad unit inclusion or exclusion. Key information includes the `adUnitId` (a string representing the ad unit's ID) and `includeDescendants` (a boolean, defaulting to true, indicating whether to target all descendant ad units). It is dependent on `InventoryTargeting`. The namespace for the service is `https://www.google.com/apis/ads/publisher/v202408`, and it is linked to ten different services.\n"]]