AI-generated Key Takeaways
-
SizeType represents the dimensions of an AdUnit, LineItem, or Creative and has required fields for width, height, and size type.
-
There are different size types for ads, including pixel, aspect ratio, interstitial, ignored, native, fluid, and audio, each with its own specific use case.
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. |