type InventoryTargeting (v202408)
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/v202408
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 is used to target and exclude ad units and placements for ad delivery.\u003c/p\u003e\n"],["\u003cp\u003eIt allows specifying targeted and excluded ad units using AdUnitTargeting.\u003c/p\u003e\n"],["\u003cp\u003eIt also supports targeting specific placements by providing a list of Placement IDs.\u003c/p\u003e\n"],["\u003cp\u003eThis object is used within various Google Ad Manager services like AdjustmentService, AudienceSegmentService, etc., to define inventory for ad rules and other configurations.\u003c/p\u003e\n"]]],["The core content details `InventoryTargeting`, which manages targeted and excluded ad units and placements. Key actions involve specifying lists of `targetedAdUnits` and `excludedAdUnits`, both using `AdUnitTargeting`. Additionally, the system allows for a list of `targetedPlacementIds`, which are specific placement identifiers. This service relies on dependencies such as `Targeting` and is part of several other services, including `AdRuleService`, `ForecastService`, and `YieldGroupService`, among others. The namespace for this service is also provided.\n"],null,["# type InventoryTargeting (v202408)\n\n**Service** \n**AdRuleService** [AdjustmentService](/ad-manager/api/reference/v202408/AdjustmentService.InventoryTargeting) [AudienceSegmentService](/ad-manager/api/reference/v202408/AudienceSegmentService.InventoryTargeting) [ForecastService](/ad-manager/api/reference/v202408/ForecastService.InventoryTargeting) [LineItemService](/ad-manager/api/reference/v202408/LineItemService.InventoryTargeting) [NativeStyleService](/ad-manager/api/reference/v202408/NativeStyleService.InventoryTargeting) [ProposalLineItemService](/ad-manager/api/reference/v202408/ProposalLineItemService.InventoryTargeting) [ProposalService](/ad-manager/api/reference/v202408/ProposalService.InventoryTargeting) [PublisherQueryLanguageService](/ad-manager/api/reference/v202408/PublisherQueryLanguageService.InventoryTargeting) [TargetingPresetService](/ad-manager/api/reference/v202408/TargetingPresetService.InventoryTargeting) [YieldGroupService](/ad-manager/api/reference/v202408/YieldGroupService.InventoryTargeting) **Dependencies** \n[Targeting](/ad-manager/api/reference/v202408/AdRuleService.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/v202408`\n\n| Field ----- ||\n|----------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ### `targetedAdUnits` | ` `[AdUnitTargeting](/ad-manager/api/reference/v202408/AdRuleService.AdUnitTargeting)`[]` A list of targeted [AdUnitTargeting](/ad-manager/api/reference/v202408/AdRuleService.AdUnitTargeting). |\n| ### `excludedAdUnits` | ` `[AdUnitTargeting](/ad-manager/api/reference/v202408/AdRuleService.AdUnitTargeting)`[]` A list of excluded [AdUnitTargeting](/ad-manager/api/reference/v202408/AdRuleService.AdUnitTargeting). |\n| ### `targetedPlacementIds` | ` `xsd:`long[]` A list of targeted [Placement](/ad-manager/api/reference/v202408/PlacementService.Placement) ids. |"]]