# type AdUnitTargeting (v202602)

**Service** [AdRuleService](https://developers.google.com/ad-manager/api/reference/v202602/AdRuleService.AdUnitTargeting) [AdjustmentService](https://developers.google.com/ad-manager/api/reference/v202602/AdjustmentService.AdUnitTargeting) [AudienceSegmentService](https://developers.google.com/ad-manager/api/reference/v202602/AudienceSegmentService.AdUnitTargeting) [ForecastService](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.AdUnitTargeting) [LineItemService](https://developers.google.com/ad-manager/api/reference/v202602/LineItemService.AdUnitTargeting) **NativeStyleService** [ProposalLineItemService](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.AdUnitTargeting) [ProposalService](https://developers.google.com/ad-manager/api/reference/v202602/ProposalService.AdUnitTargeting) [PublisherQueryLanguageService](https://developers.google.com/ad-manager/api/reference/v202602/PublisherQueryLanguageService.AdUnitTargeting) [TargetingPresetService](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.AdUnitTargeting) [YieldGroupService](https://developers.google.com/ad-manager/api/reference/v202602/YieldGroupService.AdUnitTargeting) **Dependencies** [InventoryTargeting](https://developers.google.com/ad-manager/api/reference/v202602/NativeStyleService.InventoryTargeting) ▼ **AdUnitTargeting**

Represents targeted or excluded ad units.

*** ** * ** ***

Namespace
:
    `https://www.google.com/apis/ads/publisher/v202602`

| ## 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. |