AI-generated Key Takeaways
-
A Size object represents the dimensions of an AdUnit, LineItem, or Creative.
-
A Size is defined by its width, height, and sizeType, all of which are required fields.
-
The SizeType enum indicates how the ad dimensions are interpreted, with options such as PIXEL, ASPECT_RATIO, INTERSTITIAL, NATIVE, FLUID, and AUDIO.
-
Certain SizeTypes, like INTERSTITIAL, IGNORED, NATIVE, FLUID, and AUDIO, must be used with a 1x1 size.
Represents the dimensions of an AdUnit, LineItem, or Creative.
| JSON representation |
|---|
{
"width"
:
integer
,
"height"
:
integer
,
"sizeType"
:
enum (
|
| Fields | |
|---|---|
width
|
Required. The width of the Creative, |
height
|
Required. The height of the Creative, |
sizeType
|
Required. The SizeType of the Creative, |
SizeType
The different Size types for an ad.
| Enums | |
|---|---|
SIZE_TYPE_UNSPECIFIED
|
Default value. This value is unused. |
PIXEL
|
Dimension based size, an actual height and width in pixels. |
ASPECT_RATIO
|
Size is expressed as a ratio. For example, 4:1 could be met by a 100 x 25 sized image. |
INTERSTITIAL
|
Out-of-page (Interstitial) size that is not related to the slot it is served. This must be used with 1x1 size. |
IGNORED
|
Size is ignored. This must be used with 1x1 size. |
NATIVE
|
Native size, which is a function of the how the client renders the creative. This must be used with 1x1 size. |
FLUID
|
Fluid size. Automatically sizes the ad by filling the width of the enclosing column and adjusting the height as appropriate. This must be used with 1x1 size. |
AUDIO
|
Audio size. Used with audio ads. This must be used with 1x1 size. |

