type AdUnitTargeting (v202411)
Stay organized with collections
Save and categorize content based on your preferences.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202411
Field
|
adUnitId
|
xsd:string
|
includeDescendants
|
xsd:boolean
|
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 2025-08-06 UTC.
[null,null,["Last updated 2025-08-06 UTC."],[[["\u003cp\u003eThe YieldGroupService uses AdUnitTargeting to define targeting criteria based on ad units.\u003c/p\u003e\n"],["\u003cp\u003eAdUnitTargeting allows specifying an ad unit ID (\u003ccode\u003eadUnitId\u003c/code\u003e) and whether to include its descendants (\u003ccode\u003eincludeDescendants\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eThe namespace for AdUnitTargeting is \u003ccode\u003ehttps://www.google.com/apis/ads/publisher/v202411\u003c/code\u003e.\u003c/p\u003e\n"]]],["The content details the services within a publisher API, specifically version 202411. It lists core services like AdRuleService, AdjustmentService, AudienceSegmentService, ForecastService, LineItemService, NativeStyleService, ProposalLineItemService, ProposalService, PublisherQueryLanguageService, TargetingPresetService, and YieldGroupService. YieldGroupService has an InventoryTargeting dependency. The AdUnitTargeting element within these services has two fields: `adUnitId` (string) and `includeDescendants` (boolean). The namespace is defined as `https://www.google.com/apis/ads/publisher/v202411`.\n"],null,["# type AdUnitTargeting (v202411)\n\n**Service** \n[AdRuleService](/ad-manager/api/reference/v202411/AdRuleService.AdUnitTargeting) [AdjustmentService](/ad-manager/api/reference/v202411/AdjustmentService.AdUnitTargeting) [AudienceSegmentService](/ad-manager/api/reference/v202411/AudienceSegmentService.AdUnitTargeting) [ForecastService](/ad-manager/api/reference/v202411/ForecastService.AdUnitTargeting) [LineItemService](/ad-manager/api/reference/v202411/LineItemService.AdUnitTargeting) [NativeStyleService](/ad-manager/api/reference/v202411/NativeStyleService.AdUnitTargeting) [ProposalLineItemService](/ad-manager/api/reference/v202411/ProposalLineItemService.AdUnitTargeting) [ProposalService](/ad-manager/api/reference/v202411/ProposalService.AdUnitTargeting) [PublisherQueryLanguageService](/ad-manager/api/reference/v202411/PublisherQueryLanguageService.AdUnitTargeting) [TargetingPresetService](/ad-manager/api/reference/v202411/TargetingPresetService.AdUnitTargeting) **YieldGroupService** **Dependencies** \n[InventoryTargeting](/ad-manager/api/reference/v202411/YieldGroupService.InventoryTargeting) \n▼\n**AdUnitTargeting**\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202411`\n\n| Field ----- ||\n|--------------------------|-------------------------|\n| ### `adUnitId` | ` `xsd:`string` \u003cbr /\u003e |\n| ### `includeDescendants` | ` `xsd:`boolean` \u003cbr /\u003e |"]]