type InventorySizeTargeting (v202408)
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/v202408
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."],[[["\u003cp\u003eInventorySizeTargeting allows you to target or exclude specific ad sizes within your ad inventory.\u003c/p\u003e\n"],["\u003cp\u003eIt is utilized in YieldGroups and TrafficDataRequests for refined ad delivery control.\u003c/p\u003e\n"],["\u003cp\u003eThis targeting method uses a list of TargetedSize objects to define the desired or excluded sizes.\u003c/p\u003e\n"],["\u003cp\u003eInventorySizeTargeting is defined within the \u003ccode\u003ehttps://www.google.com/apis/ads/publisher/v202408\u003c/code\u003e namespace.\u003c/p\u003e\n"]]],["The document outlines the `InventorySizeTargeting` feature within an ad management system, specifically available for `YieldGroup` and `TrafficDataRequest`. Key actions involve defining whether inventory sizes are targeted or excluded via the `isTargeted` field. It also manages a list of specific `TargetedSize` objects through the `targetedSizes` field, providing granular control over ad inventory targeting and exclusion based on dimensions. This feature is linked to multiple services including `AdRuleService` , `NativeStyleService` and others.\n"],null,["# type InventorySizeTargeting (v202408)\n\n**Service** \n[AdRuleService](/ad-manager/api/reference/v202408/AdRuleService.InventorySizeTargeting) [AdjustmentService](/ad-manager/api/reference/v202408/AdjustmentService.InventorySizeTargeting) [ForecastService](/ad-manager/api/reference/v202408/ForecastService.InventorySizeTargeting) [LineItemService](/ad-manager/api/reference/v202408/LineItemService.InventorySizeTargeting) **NativeStyleService** [ProposalLineItemService](/ad-manager/api/reference/v202408/ProposalLineItemService.InventorySizeTargeting) [ProposalService](/ad-manager/api/reference/v202408/ProposalService.InventorySizeTargeting) [PublisherQueryLanguageService](/ad-manager/api/reference/v202408/PublisherQueryLanguageService.InventorySizeTargeting) [TargetingPresetService](/ad-manager/api/reference/v202408/TargetingPresetService.InventorySizeTargeting) [YieldGroupService](/ad-manager/api/reference/v202408/YieldGroupService.InventorySizeTargeting) **Dependencies** \n[Targeting](/ad-manager/api/reference/v202408/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/v202408/YieldGroupService.YieldGroup) and [TrafficDataRequest](/ad-manager/api/reference/v202408/ForecastService.TrafficDataRequest).\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202408`\n\n| Field ----- ||\n|---------------------|------------------------------------------------------------------------------------------------------------------------|\n| ### `isTargeted` | ` `xsd:`boolean` Whether the inventory sizes should be targeted or excluded. |\n| ### `targetedSizes` | ` `[TargetedSize](/ad-manager/api/reference/v202408/NativeStyleService.TargetedSize)`[]` A list of `TargetedSizeDto`s. |"]]