Size

Represents the dimensions of an AdUnit, LineItem, or Creative.

JSON representation
{
  "width": integer,
  "height": integer,
  "sizeType": enum (SizeType)
}
Fields
width

integer

Required. The width of the Creative, AdUnit, or LineItem.

height

integer

Required. The height of the Creative, AdUnit, or LineItem.

sizeType

enum (SizeType)

Required. The SizeType of the Creative, AdUnit, or LineItem.

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.