Skip to content

Мультиформат: пример OpenRTB ​

Адреса условные, пример на OpenRTB 2.6, если не сказано иное. Поля описаны в спецификации.

Запрос ​

json
{
  "at": 1,
  "badv": [
    "blocked-brand.example"
  ],
  "bcat": [
    "IAB25",
    "IAB26"
  ],
  "cur": [
    "USD"
  ],
  "device": {
    "devicetype": 2,
    "ip": "203.0.113.10",
    "language": "de",
    "os": "Windows",
    "ua": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36"
  },
  "id": "req-multi-1",
  "imp": [
    {
      "banner": {
        "format": [
          {
            "h": 360,
            "w": 640
          },
          {
            "h": 250,
            "w": 300
          }
        ]
      },
      "bidfloor": 1,
      "bidfloorcur": "USD",
      "id": "1",
      "tagid": "zone-incontent-640x360",
      "video": {
        "h": 360,
        "linearity": 1,
        "maxduration": 30,
        "mimes": [
          "video/mp4"
        ],
        "minduration": 5,
        "plcmt": 4,
        "protocols": [
          7,
          8
        ],
        "w": 640
      }
    }
  ],
  "site": {
    "cat": [
      "IAB12"
    ],
    "domain": "publisher.example",
    "id": "site-1",
    "page": "https://publisher.example/news/article-1",
    "publisher": {
      "ext": {
        "subid": "sub-42"
      },
      "id": "pub-1"
    }
  },
  "tmax": 300,
  "user": {
    "id": "u-222"
  }
}

Ответ ​

json
{
  "id": "req-multi-1",
  "seatbid": [
    {
      "bid": [
        {
          "id": "6d1e0c3a-2222-4b3c-8d4e-000000000003",
          "impid": "1",
          "price": 2.6,
          "adid": "2003",
          "nurl": "https://notify.example.com/wn?id=6d1e0c3a-2222-4b3c-8d4e-000000000003&t=tk-notice&price=${AUCTION_PRICE}",
          "burl": "https://notify.example.com/bn?id=6d1e0c3a-2222-4b3c-8d4e-000000000003&t=tk-notice&price=${AUCTION_PRICE}",
          "adm": "<VAST version=\"4.0\"><Ad id=\"2003\"><Wrapper><AdSystem>DSP</AdSystem><Error><![CDATA[https://notify.example.com/ve?id=6d1e0c3a-2222-4b3c-8d4e-000000000003&t=tk-event&event_type=error&errorcode=[ERRORCODE]]]></Error><Impression id=\"0\"><![CDATA[https://notify.example.com/imp?id=6d1e0c3a-2222-4b3c-8d4e-000000000003&t=tk-imp]]></Impression><Creatives><Creative id=\"2003\"><Linear><TrackingEvents><Tracking event=\"start\"><![CDATA[https://notify.example.com/ve?event_type=start&id=6d1e0c3a-2222-4b3c-8d4e-000000000003&t=tk-event]]></Tracking><Tracking event=\"firstQuartile\"><![CDATA[https://notify.example.com/ve?event_type=firstQuartile&id=6d1e0c3a-2222-4b3c-8d4e-000000000003&t=tk-event]]></Tracking><Tracking event=\"midpoint\"><![CDATA[https://notify.example.com/ve?event_type=midpoint&id=6d1e0c3a-2222-4b3c-8d4e-000000000003&t=tk-event]]></Tracking><Tracking event=\"thirdQuartile\"><![CDATA[https://notify.example.com/ve?event_type=thirdQuartile&id=6d1e0c3a-2222-4b3c-8d4e-000000000003&t=tk-event]]></Tracking><Tracking event=\"complete\"><![CDATA[https://notify.example.com/ve?event_type=complete&id=6d1e0c3a-2222-4b3c-8d4e-000000000003&t=tk-event]]></Tracking><Tracking event=\"skip\"><![CDATA[https://notify.example.com/ve?event_type=skip&id=6d1e0c3a-2222-4b3c-8d4e-000000000003&t=tk-event]]></Tracking></TrackingEvents></Linear></Creative></Creatives><VASTAdTagURI><![CDATA[https://notify.example.com/vast?creative_id=c2003&id=6d1e0c3a-2222-4b3c-8d4e-000000000003&t=tk-event]]></VASTAdTagURI></Wrapper></Ad></VAST>",
          "adomain": [
            "advertiser.example"
          ],
          "cid": "603",
          "crid": "2003",
          "cat": [
            "IAB3"
          ],
          "protocol": 8,
          "w": 640,
          "h": 360,
          "langb": "de",
          "dur": 10,
          "mtype": 2
        }
      ],
      "seat": "77"
    }
  ],
  "cur": "USD"
}

В imp баннер и видео, ставка одна — победил видеокреатив, mtype: 2.

© Youtarget