REST Resource: sizes

  • The "Size" resource defines the dimensions (width and height) of advertising elements like ads, placements, creatives, or creative assets.

  • Each size is identified by a unique ID and can be categorized as an IAB standard size or not.

  • You can manage sizes using methods to get details of a specific size, create a new size, or retrieve a list of sizes.

  • The JSON representation of a size includes its ID, width, height, IAB standard status, and resource kind.

Resource: Size

Represents the dimensions of ads, placements, creatives, or creative assets.

JSON representation
{
  "id": string,
  "width": integer,
  "height": integer,
  "iab": boolean,
  "kind": string
}
Fields
id

string (int64 format)

ID of this size. This is a read-only, auto-generated field.

width

integer

Width of this size. Acceptable values are

0

to

32767

, inclusive.

height

integer

Height of this size. Acceptable values are

0

to

32767

, inclusive.

iab

boolean

IAB standard size. This is a read-only, auto-generated field.

kind

string

Identifies what kind of resource this is. Value: the fixed string

"dfareporting#size"

.

Methods

get

Gets one size by ID.

insert

Inserts a new size.

list

Retrieves a list of sizes, possibly filtered.