Skip to end of metadata
Go to start of metadata

Media Type Service

The Xandr platform categorizes creatives by format, media type, and media subtype:

  • Format defines the resource type of the creative (flash, image, etc.)
  • Media type defines the general display style of the creative (banner, expandable, video, etc.)
  • Media subtype defines the specific display style of the creative (standard banner, MediaMind expandable, Standard VAST, etc.)

This read-only service allows you to view all of the supported media types.

To view all supported formats and media subtypes, you can use the Creative Format Service and the Media Subtype Service.

On This Page

REST API

View all media types:
GET https://api.appnexus.com/media-type

View a specific media type:
GET https://api.appnexus.com/media-type?id=MEDIA_TYPE_ID

JSON Fields

Field

Type

Description

id

int

The ID of the media type.

name

string 

The name of the media type, for example, "Banner", "Interstitial", or "Video".

media_type_group_id

int

The group to which a media type belongs. This information is relevant for setting allowed media types on placements (see Placement Service). Only media types that belong to the same group can be allowed on a single placement.

uses_sizes

enum

The size requirement for creatives belonging to the media type. Possible values:

  • "always" - width and height are required when adding creatives (Banner and Expandable)
  • "sometimes" - width and height are sometimes required when adding creatives (Pop and Text)
  • "never" - width and height are not required when adding creatives (Interstitial, Video, and Skin)

last_modified

timestamp

The date and time when Xandr last modified the media type.

code

string

A code-friendly version of the media type's name. For example, "Image and Text" becomes "image_and_text".

Examples

View all media types
View the "Video" media type (id 4)
View media types that always require creatives to have a width and height

Related Topics