type AdUnitTargeting (v202411)
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.
|
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-11-19 UTC.
[null,null,["Last updated 2024-11-19 UTC."],[[["AdUnitTargeting allows you to include or exclude specific ad units for targeting."],["You can target an ad unit and all its descendants by default, or choose to target only the specified ad unit."],["AdUnitTargeting utilizes adUnitId and includeDescendants fields to define the scope of targeting."],["This feature is part of the Google Ad Manager API and uses the namespace `https://www.google.com/apis/ads/publisher/v202411`."]]],["The content details services and dependencies related to ad management. Key services include AdRuleService, AdjustmentService, AudienceSegmentService, ForecastService, LineItemService, NativeStyleService, ProposalLineItemService, ProposalService, PublisherQueryLanguageService, TargetingPresetService, and YieldGroupService. A core dependency, InventoryTargeting, utilizes AdUnitTargeting. AdUnitTargeting specifies `adUnitId` and `includeDescendants`, controlling whether an ad unit and its child are included in targeting. The namespace for these services is `https://www.google.com/apis/ads/publisher/v202411`.\n"]]