type Size (v202405)
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/v202405
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 2024-05-15 UTC.
[null,null,["Last updated 2024-05-15 UTC."],[[["`Size` objects represent the dimensions of ad units, line items, or creatives within Google Ad Manager."],["For interstitial, native, ignored, and fluid sizes, the `Size` object must be set to 1x1."],["`Size` objects contain `width`, `height`, and `isAspectRatio` properties for specifying ad dimensions and aspect ratios."],["The `width` and `height` properties are integers representing the ad's dimensions, relevant for standard display sizes."],["The `isAspectRatio` property, a boolean, indicates whether the `Size` represents an aspect ratio rather than fixed dimensions."]]],["The core content details the \"Size\" dimensions for AdUnit, LineItem, or Creative elements. It provides service information for AdRuleService, AdjustmentService, CreativeService, DaiEncodingProfileService, ForecastService, and others, and dependencies like CreativePlaceholder and TargetedSize. The namespace is `https://www.google.com/apis/ads/publisher/v202405`. The \"Size\" fields include `width`, `height` in integers, and `isAspectRatio` as a boolean, and when the size is interstitial it must be 1x1.\n"]]