Create a Creative

POST /creative

Use this method to create a creative.

Headers

Name
Value

Authorization

Basic <token>

Body

 {
  name: string,
  is_archived?: boolean,
  line_item: {
    id: number, // Mandatory, lineItemId (looks like 1234)
    name?: string
  },
  mediatype: string, //Options ('banner', 'video', 'native', 'audio')
  w: number, //The width of the creative
  h: number, //The height of the creative
  content: string,
  adomain: string, //Must be in this format 'domain.com'
  weight?: number, //Default value : 1
  comment?: string
}

Response

{
  "id": number,
  "name": string,
  "is_archived": boolean,
  "account": {
    "id": number,
    "name": string
  },
  "order": {
    "id": number,
    "name": string
  },
  "line_item": {
    "id": number,
    "name": string
  },
  "mediatype": string, //Options ('banner', 'video', 'native', 'audio')
  "w": number,
  "h": number,
  "content": string,
  "adomain": string,
  "weight": number,
  "comment": string
}

Last updated

Was this helpful?