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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-06 UTC."],[],["The core content details the `AdUnitTargeting` service within a namespace related to ad management. Key information includes targeting or excluding ad units via `adUnitId`, a string field. The `includeDescendants`, a boolean field, determines if the targeting action applies to all descendant ad units. Services mentioned are AdRuleService, AdjustmentService, AudienceSegmentService, ForecastService, LineItemService, NativeStyleService, ProposalLineItemService, ProposalService, PublisherQueryLanguageService, TargetingPresetService, and YieldGroupService.\n"],null,["# type AdUnitTargeting (v202502)\n\n**Service** \n[AdRuleService](/ad-manager/api/reference/v202502/AdRuleService.AdUnitTargeting) [AdjustmentService](/ad-manager/api/reference/v202502/AdjustmentService.AdUnitTargeting) [AudienceSegmentService](/ad-manager/api/reference/v202502/AudienceSegmentService.AdUnitTargeting) [ForecastService](/ad-manager/api/reference/v202502/ForecastService.AdUnitTargeting) [LineItemService](/ad-manager/api/reference/v202502/LineItemService.AdUnitTargeting) **NativeStyleService** [ProposalLineItemService](/ad-manager/api/reference/v202502/ProposalLineItemService.AdUnitTargeting) [ProposalService](/ad-manager/api/reference/v202502/ProposalService.AdUnitTargeting) [PublisherQueryLanguageService](/ad-manager/api/reference/v202502/PublisherQueryLanguageService.AdUnitTargeting) [TargetingPresetService](/ad-manager/api/reference/v202502/TargetingPresetService.AdUnitTargeting) [YieldGroupService](/ad-manager/api/reference/v202502/YieldGroupService.AdUnitTargeting) **Dependencies** \n[InventoryTargeting](/ad-manager/api/reference/v202502/NativeStyleService.InventoryTargeting) \n▼\n**AdUnitTargeting**\n\nRepresents targeted or excluded ad units.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202502`\n\n| Field ----- ||\n|--------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ### `adUnitId` | ` `xsd:`string` Included or excluded ad unit id. |\n| ### `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. |"]]