type InventoryTargeting (v202411)
Stay organized with collections
Save and categorize content based on your preferences.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202411
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\u003eInventoryTargeting defines criteria for selecting inventory to include or exclude in a yield group.\u003c/p\u003e\n"],["\u003cp\u003eYou can target or exclude specific ad units using \u003ccode\u003etargetedAdUnits\u003c/code\u003e and \u003ccode\u003eexcludedAdUnits\u003c/code\u003e fields respectively.\u003c/p\u003e\n"],["\u003cp\u003eInventoryTargeting also allows targeting specific placements using their IDs through the \u003ccode\u003etargetedPlacementIds\u003c/code\u003e field.\u003c/p\u003e\n"],["\u003cp\u003eThis targeting information, alongside other criteria, determines which inventory a yield group competes for during ad requests.\u003c/p\u003e\n"]]],["The document outlines various services related to ad management, including `AdRuleService`, `AdjustmentService`, `AudienceSegmentService`, `ForecastService`, `LineItemService`, `NativeStyleService`, `ProposalLineItemService`, `ProposalService`, `PublisherQueryLanguageService`, `TargetingPresetService`, and `YieldGroupService`. The core information of `InventoryTargeting` within `YieldGroupService`, shows `targetedAdUnits` and `excludedAdUnits` are arrays of `AdUnitTargeting`, and `targetedPlacementIds` are arrays of long integers. These allow for specifying ad unit inclusion and exclusion as well as placement targeting.\n"],null,["# type InventoryTargeting (v202411)\n\n**Service** \n[AdRuleService](/ad-manager/api/reference/v202411/AdRuleService.InventoryTargeting) [AdjustmentService](/ad-manager/api/reference/v202411/AdjustmentService.InventoryTargeting) [AudienceSegmentService](/ad-manager/api/reference/v202411/AudienceSegmentService.InventoryTargeting) [ForecastService](/ad-manager/api/reference/v202411/ForecastService.InventoryTargeting) [LineItemService](/ad-manager/api/reference/v202411/LineItemService.InventoryTargeting) [NativeStyleService](/ad-manager/api/reference/v202411/NativeStyleService.InventoryTargeting) [ProposalLineItemService](/ad-manager/api/reference/v202411/ProposalLineItemService.InventoryTargeting) [ProposalService](/ad-manager/api/reference/v202411/ProposalService.InventoryTargeting) [PublisherQueryLanguageService](/ad-manager/api/reference/v202411/PublisherQueryLanguageService.InventoryTargeting) [TargetingPresetService](/ad-manager/api/reference/v202411/TargetingPresetService.InventoryTargeting) **YieldGroupService** **Dependencies** \n[Targeting](/ad-manager/api/reference/v202411/YieldGroupService.Targeting) \n▼\n**InventoryTargeting**\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202411`\n\n| Field ----- ||\n|----------------------------|------------------------------------------------------------------------------------------------------|\n| ### `targetedAdUnits` | ` `[AdUnitTargeting](/ad-manager/api/reference/v202411/YieldGroupService.AdUnitTargeting)`[]` \u003cbr /\u003e |\n| ### `excludedAdUnits` | ` `[AdUnitTargeting](/ad-manager/api/reference/v202411/YieldGroupService.AdUnitTargeting)`[]` \u003cbr /\u003e |\n| ### `targetedPlacementIds` | ` `xsd:`long[]` \u003cbr /\u003e |"]]