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 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."]]],["The core content defines `AdUnitTargeting`, which represents targeted or excluded ad units within various services. Key services mentioned include AdRuleService, AdjustmentService, AudienceSegmentService, ForecastService, LineItemService, NativeStyleService, ProposalLineItemService, ProposalService, PublisherQueryLanguageService, TargetingPresetService, and YieldGroupService. It involves specifying an `adUnitId` and determining `includeDescendants`, a boolean value determining if descendant ad units are included, which is true by default. The namespace for this is also provided.\n"]]