<!-- https://docs.youtarget.com/rtb/ssp/examples/interstitial.html -->

# Interstitial: пример OpenRTB

> Запрос и ответ OpenRTB для формата «Interstitial».

Адреса условные, пример на OpenRTB 2.6, если не сказано иное. Поля описаны в [спецификации](../openrtb.md).

## Запрос

```json
{
  "at": 1,
  "badv": [
    "blocked-brand.example"
  ],
  "bcat": [
    "IAB25",
    "IAB26"
  ],
  "cur": [
    "USD"
  ],
  "device": {
    "devicetype": 4,
    "ip": "203.0.113.30",
    "language": "en",
    "ua": "Mozilla/5.0 (Linux; Android 14; Pixel 8) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36"
  },
  "id": "req-instl-1",
  "imp": [
    {
      "banner": {
        "format": [
          {
            "h": 480,
            "w": 320
          }
        ]
      },
      "bidfloor": 1.2,
      "bidfloorcur": "USD",
      "id": "1",
      "instl": 1,
      "tagid": "zone-fullscreen"
    }
  ],
  "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-555"
  }
}
```

## Ответ

```json
{
  "id": "req-instl-1",
  "seatbid": [
    {
      "bid": [
        {
          "id": "0b9c2f4e-1111-4a2b-9c3d-000000000003",
          "impid": "1",
          "price": 1.5,
          "adid": "1003",
          "nurl": "https://notify.example.com/wn?id=0b9c2f4e-1111-4a2b-9c3d-000000000003&t=tk-notice&price=${AUCTION_PRICE}",
          "burl": "https://notify.example.com/bn?id=0b9c2f4e-1111-4a2b-9c3d-000000000003&t=tk-notice&price=${AUCTION_PRICE}",
          "adm": "<div id='ytrgt-container-eqdenz4qt8ur'  style='width: 320px; height: 480px;'></div><script>!function(w,d,s,o,f,js,fjs){  w[o]=w[o]||function(){(w[o].q=w[o].q||[]).push(arguments)};  w[o].q=w[o].q||[];  js=d.createElement(s);fjs=d.getElementsByTagName(s)[0];  js.async=1;js.src=f;fjs.parentNode.insertBefore(js,fjs);}(window,document,'script','ytrgt','https://ads.example.com/js/ytrgt.js');ytrgt('ad:create', '#ytrgt-container-eqdenz4qt8ur');ytrgt('ad:load', '#ytrgt-container-eqdenz4qt8ur', 'https://notify.example.com/bi?creative_id=c1003&id=0b9c2f4e-1111-4a2b-9c3d-000000000003&t=tk-event');ytrgt('sync:pixels', []);</script>",
          "adomain": [
            "advertiser.example"
          ],
          "cid": "503",
          "crid": "1003",
          "cat": [
            "IAB3"
          ],
          "w": 320,
          "h": 480,
          "langb": "de",
          "mtype": 1
        }
      ],
      "seat": "77"
    }
  ],
  "cur": "USD"
}
```

При `instl=1` отдаём только креативы для полноэкранного размещения, разметка как у обычного баннера.
