Create mapping

POST /mapping

Use this method to create a new mapping.

Headers

Name
Value

Authorization

Basic <token>

Body

{
  placement: {
    id : number, // Mandatory, placementId (looks like 1723)
    name?: string,
  },
  tag_id: {
    id : string, // Mandatory, tagId (looks like '0bonobfw')
    name?: string,
  },
  mapping: {
    adunit_code?: string[],
    device?: string[], // desktop | mobile | tablet | tv | other
    domain?: string[], // Must be in this format 'domain.com'
    gpid?: string[],
    mediatype?: string[], // audio | banner | native | video
    size?: {
      w: number, // Width
      h: number // Height
    },
  }
}

Response

{
    "id": number,
    "placement": {
        "id": number,
        "name": string
    },
    "tag_id": {
        "id": string,
        "name": string
    },
    "mapping": {
      "adunit_code": string[],
      "device": string[],
      "domain": string[],
      "gpid": string[],
      "size": {
        "w": number, 
        "h": number
      },
    }
}

Last updated

Was this helpful?