type Size (v202502)
Stay organized with collections
Save and categorize content based on your preferences.
Represents the dimensions of an AdUnit, LineItem or Creative.
For interstitial size (out-of-page), native, ignored and fluid
size, Size
must be 1x1.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202502
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 content details the `Size` data structure, which represents dimensions for AdUnits, LineItems, or Creatives. It includes `width` and `height` as integer values. A boolean `isAspectRatio` field indicates if the size is an aspect ratio. For interstitial, native, ignored, and fluid sizes, `Size` must be 1x1. The data structure is part of multiple services like AdRuleService, AdjustmentService, and CreativeService, among others. The Namespace is `https://www.google.com/apis/ads/publisher/v202502`.\n"],null,["# type Size (v202502)\n\n**Service** \n[AdRuleService](/ad-manager/api/reference/v202502/AdRuleService.Size) [AdjustmentService](/ad-manager/api/reference/v202502/AdjustmentService.Size) [CreativeService](/ad-manager/api/reference/v202502/CreativeService.Size) [DaiEncodingProfileService](/ad-manager/api/reference/v202502/DaiEncodingProfileService.Size) [ForecastService](/ad-manager/api/reference/v202502/ForecastService.Size) [InventoryService](/ad-manager/api/reference/v202502/InventoryService.Size) [LineItemCreativeAssociationService](/ad-manager/api/reference/v202502/LineItemCreativeAssociationService.Size) [LineItemService](/ad-manager/api/reference/v202502/LineItemService.Size) [NativeStyleService](/ad-manager/api/reference/v202502/NativeStyleService.Size) [ProposalLineItemService](/ad-manager/api/reference/v202502/ProposalLineItemService.Size) [ProposalService](/ad-manager/api/reference/v202502/ProposalService.Size) **PublisherQueryLanguageService** [SuggestedAdUnitService](/ad-manager/api/reference/v202502/SuggestedAdUnitService.Size) [TargetingPresetService](/ad-manager/api/reference/v202502/TargetingPresetService.Size) [YieldGroupService](/ad-manager/api/reference/v202502/YieldGroupService.Size) **Dependencies** \n[TargetedSize](/ad-manager/api/reference/v202502/PublisherQueryLanguageService.TargetedSize) \n▼\n**Size**\n\n\nRepresents the dimensions of an [AdUnit](/ad-manager/api/reference/v202502/InventoryService.AdUnit), [LineItem](/ad-manager/api/reference/v202502/ForecastService.LineItem) or [Creative](/ad-manager/api/reference/v202502/CreativeService.Creative).\n\nFor interstitial size (out-of-page), native, ignored and fluid\nsize, [Size](/ad-manager/api/reference/v202502/PublisherQueryLanguageService.Size)\nmust be 1x1.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202502`\n\n| Field ----- ||\n|---------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ### `width` | ` `xsd:`int` The width of the [AdUnit](/ad-manager/api/reference/v202502/InventoryService.AdUnit), [LineItem](/ad-manager/api/reference/v202502/ForecastService.LineItem) or [Creative](/ad-manager/api/reference/v202502/CreativeService.Creative). |\n| ### `height` | ` `xsd:`int` The height of the [AdUnit](/ad-manager/api/reference/v202502/InventoryService.AdUnit), [LineItem](/ad-manager/api/reference/v202502/ForecastService.LineItem) or [Creative](/ad-manager/api/reference/v202502/CreativeService.Creative). |\n| ### `isAspectRatio` | ` `xsd:`boolean` Whether this size represents an aspect ratio. |"]]