type InventoryTargeting (v202411)
Stay organized with collections
Save and categorize content based on your preferences.
A collection of targeted and excluded ad units and placements.
- 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 allows you to target and exclude specific ad units and placements for your line items.\u003c/p\u003e\n"],["\u003cp\u003eIt is comprised of targeted and excluded ad unit lists, as well as a list of targeted Placement IDs.\u003c/p\u003e\n"],["\u003cp\u003eYou can utilize InventoryTargeting within services such as LineItemService, ProposalService, and AdRuleService to refine your ad delivery strategy.\u003c/p\u003e\n"],["\u003cp\u003eThis object uses the namespace \u003ccode\u003ehttps://www.google.com/apis/ads/publisher/v202411\u003c/code\u003e for interactions within the Google Ad Manager API.\u003c/p\u003e\n"]]],["The core content details `InventoryTargeting`, which manages ad unit and placement targeting. Key actions involve defining `targetedAdUnits` and `excludedAdUnits` using `AdUnitTargeting`, along with specifying `targetedPlacementIds`. It operates within the namespace `https://www.google.com/apis/ads/publisher/v202411`. Services like `AdRuleService`, `AdjustmentService`, `LineItemService`, and others leverage this. The information is structured within fields detailing what can be targeted, excluded, or related to placement IDs.\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** [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](/ad-manager/api/reference/v202411/YieldGroupService.InventoryTargeting) **Dependencies** \n[Targeting](/ad-manager/api/reference/v202411/LineItemService.Targeting) \n▼\n**InventoryTargeting**\n\nA collection of targeted and excluded ad units and placements.\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/LineItemService.AdUnitTargeting)`[]` A list of targeted [AdUnitTargeting](/ad-manager/api/reference/v202411/LineItemService.AdUnitTargeting). |\n| ### `excludedAdUnits` | ` `[AdUnitTargeting](/ad-manager/api/reference/v202411/LineItemService.AdUnitTargeting)`[]` A list of excluded [AdUnitTargeting](/ad-manager/api/reference/v202411/LineItemService.AdUnitTargeting). |\n| ### `targetedPlacementIds` | ` `xsd:`long[]` A list of targeted [Placement](/ad-manager/api/reference/v202411/PlacementService.Placement) ids. |"]]