type InventorySizeTargeting (v202502)
Stay organized with collections
Save and categorize content based on your preferences.
Represents a collection of targeted and excluded inventory sizes. This is currently only
available on YieldGroup and TrafficDataRequest.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202502
Field
|
isTargeted
|
xsd:boolean
Whether the inventory sizes should be targeted or excluded.
|
targetedSizes
|
TargetedSize[]
A list of TargetedSizeDto s.
|
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."],[],["The core content defines `InventorySizeTargeting`, a feature for managing targeted and excluded inventory sizes, currently available for `YieldGroup` and `TrafficDataRequest`. It is located under the namespace `https://www.google.com/apis/ads/publisher/v202502`. Key actions involve setting whether inventory sizes should be targeted or excluded via the `isTargeted` field, and specifying the actual sizes using a list of `TargetedSize` in `targetedSizes`. It is part of the services such as `AdRuleService` and `YieldGroupService` among others.\n"],null,["# type InventorySizeTargeting (v202502)\n\n**Service** \n[AdRuleService](/ad-manager/api/reference/v202502/AdRuleService.InventorySizeTargeting) [AdjustmentService](/ad-manager/api/reference/v202502/AdjustmentService.InventorySizeTargeting) [ForecastService](/ad-manager/api/reference/v202502/ForecastService.InventorySizeTargeting) [LineItemService](/ad-manager/api/reference/v202502/LineItemService.InventorySizeTargeting) **NativeStyleService** [ProposalLineItemService](/ad-manager/api/reference/v202502/ProposalLineItemService.InventorySizeTargeting) [ProposalService](/ad-manager/api/reference/v202502/ProposalService.InventorySizeTargeting) [PublisherQueryLanguageService](/ad-manager/api/reference/v202502/PublisherQueryLanguageService.InventorySizeTargeting) [TargetingPresetService](/ad-manager/api/reference/v202502/TargetingPresetService.InventorySizeTargeting) [YieldGroupService](/ad-manager/api/reference/v202502/YieldGroupService.InventorySizeTargeting) **Dependencies** \n[Targeting](/ad-manager/api/reference/v202502/NativeStyleService.Targeting) \n▼\n**InventorySizeTargeting**\n\nRepresents a collection of targeted and excluded inventory sizes. This is currently only\navailable on [YieldGroup](/ad-manager/api/reference/v202502/YieldGroupService.YieldGroup) and [TrafficDataRequest](/ad-manager/api/reference/v202502/ForecastService.TrafficDataRequest).\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202502`\n\n| Field ----- ||\n|---------------------|------------------------------------------------------------------------------------------------------------------------|\n| ### `isTargeted` | ` `xsd:`boolean` Whether the inventory sizes should be targeted or excluded. |\n| ### `targetedSizes` | ` `[TargetedSize](/ad-manager/api/reference/v202502/NativeStyleService.TargetedSize)`[]` A list of `TargetedSizeDto`s. |"]]