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 is used to include or exclude ad units for targeting purposes within Google Ad Manager."],["You can specify individual ad units using their IDs (`adUnitId`) for targeting."],["Targeting can be extended to include or exclude all descendant ad units of a specified parent ad unit using the `includeDescendants` field."],["AdUnitTargeting objects reside within the `https://www.google.com/apis/ads/publisher/v202408` namespace."]]],["The document outlines various services related to ad management, including `AdRuleService`, `AdjustmentService`, `AudienceSegmentService`, `ForecastService`, `LineItemService`, `NativeStyleService`, `ProposalLineItemService`, `ProposalService`, `PublisherQueryLanguageService`, `TargetingPresetService`, and `YieldGroupService`. These services use `AdUnitTargeting`, which represents specific or excluded ad units. `AdUnitTargeting` utilizes `adUnitId` and `includeDescendants` to specify ad unit targets and whether descendants are included, defaults to `true`. `InventoryTargeting` is its dependency.\n"]]