DCM/DFA Reporting And Trafficking API . 4 . sizes

Instance Methods

get(profileId=*, id=*)

Gets one size by ID.

insert(profileId=*, body=None)

Inserts a new size.

list(profileId=*, iabStandard=None, width=None, ids=None, height=None)

Retrieves a list of sizes, possibly filtered. Retrieved sizes are globally unique and may include values not currently in use by your account. Due to this, the list of sizes returned by this method may differ from the list seen in the Trafficking UI.

Method Details

get(profileId=*, id=*)
Gets one size by ID.

Args:
  profileId: string, User profile ID associated with this request. (required)
  id: string, Size ID. (required)

Returns:
  An object of the form:

    { # Represents the dimensions of ads, placements, creatives, or creative assets.
    "width": 42, # Width of this size. Acceptable values are 0 to 32767, inclusive.
    "kind": "dfareporting#size", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#size".
    "iab": True or False, # IAB standard size. This is a read-only, auto-generated field.
    "id": "A String", # ID of this size. This is a read-only, auto-generated field.
    "height": 42, # Height of this size. Acceptable values are 0 to 32767, inclusive.
  }
insert(profileId=*, body=None)
Inserts a new size.

Args:
  profileId: string, User profile ID associated with this request. (required)
  body: object, The request body.
    The object takes the form of:

{ # Represents the dimensions of ads, placements, creatives, or creative assets.
  "width": 42, # Width of this size. Acceptable values are 0 to 32767, inclusive.
  "kind": "dfareporting#size", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#size".
  "iab": True or False, # IAB standard size. This is a read-only, auto-generated field.
  "id": "A String", # ID of this size. This is a read-only, auto-generated field.
  "height": 42, # Height of this size. Acceptable values are 0 to 32767, inclusive.
}


Returns:
  An object of the form:

    { # Represents the dimensions of ads, placements, creatives, or creative assets.
    "width": 42, # Width of this size. Acceptable values are 0 to 32767, inclusive.
    "kind": "dfareporting#size", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#size".
    "iab": True or False, # IAB standard size. This is a read-only, auto-generated field.
    "id": "A String", # ID of this size. This is a read-only, auto-generated field.
    "height": 42, # Height of this size. Acceptable values are 0 to 32767, inclusive.
  }
list(profileId=*, iabStandard=None, width=None, ids=None, height=None)
Retrieves a list of sizes, possibly filtered. Retrieved sizes are globally unique and may include values not currently in use by your account. Due to this, the list of sizes returned by this method may differ from the list seen in the Trafficking UI.

Args:
  profileId: string, User profile ID associated with this request. (required)
  iabStandard: boolean, Select only IAB standard sizes.
  width: integer, Select only sizes with this width.
  ids: string, Select only sizes with these IDs. (repeated)
  height: integer, Select only sizes with this height.

Returns:
  An object of the form:

    { # Size List Response
    "kind": "dfareporting#sizesListResponse", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#sizesListResponse".
    "sizes": [ # Size collection.
      { # Represents the dimensions of ads, placements, creatives, or creative assets.
        "width": 42, # Width of this size. Acceptable values are 0 to 32767, inclusive.
        "kind": "dfareporting#size", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#size".
        "iab": True or False, # IAB standard size. This is a read-only, auto-generated field.
        "id": "A String", # ID of this size. This is a read-only, auto-generated field.
        "height": 42, # Height of this size. Acceptable values are 0 to 32767, inclusive.
      },
    ],
  }