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 publishers to target or exclude specific ad units and placements for their proposals.\u003c/p\u003e\n"],["\u003cp\u003eIt leverages \u003ccode\u003eAdUnitTargeting\u003c/code\u003e for specifying both targeted and excluded ad units.\u003c/p\u003e\n"],["\u003cp\u003eIt also supports targeting based on \u003ccode\u003ePlacement\u003c/code\u003e IDs.\u003c/p\u003e\n"],["\u003cp\u003eThis feature is part of the Google Ad Manager API and utilizes the namespace \u003ccode\u003ehttps://www.google.com/apis/ads/publisher/v202411\u003c/code\u003e.\u003c/p\u003e\n"]]],["The content details the `InventoryTargeting` component, which manages targeted and excluded ad units and placements. Key services involved include `AdRuleService`, `AdjustmentService`, `AudienceSegmentService`, `ForecastService`, `LineItemService`, `NativeStyleService`, `ProposalLineItemService`, `ProposalService`, `PublisherQueryLanguageService`, `TargetingPresetService`, and `YieldGroupService`. `InventoryTargeting` utilizes `targetedAdUnits`, `excludedAdUnits`, and `targetedPlacementIds` to define ad delivery parameters. It depends on the `Targeting` and uses `AdUnitTargeting` to specify individual units. The namespace is identified as `https://www.google.com/apis/ads/publisher/v202411`.\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** [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/ProposalService.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/ProposalService.AdUnitTargeting)`[]` A list of targeted [AdUnitTargeting](/ad-manager/api/reference/v202411/ProposalService.AdUnitTargeting). |\n| ### `excludedAdUnits` | ` `[AdUnitTargeting](/ad-manager/api/reference/v202411/ProposalService.AdUnitTargeting)`[]` A list of excluded [AdUnitTargeting](/ad-manager/api/reference/v202411/ProposalService.AdUnitTargeting). |\n| ### `targetedPlacementIds` | ` `xsd:`long[]` A list of targeted [Placement](/ad-manager/api/reference/v202411/PlacementService.Placement) ids. |"]]