Skip to content

Video Ads - Instream post-roll (2.4)

Here you will find example bid requests and responses for Video Ads - Instream post-roll with OpenRTB 2.4

Bid Request

json
{
  "allimps": 0,
  "app": {
    "bundle": "defaultBundleId",
    "cat": [
      "IAB7-42"
    ],
    "id": "294",
    "name": "appName",
    "publisher": {
      "id": "5020393",
      "name": "PublisherName"
    },
    "storeurl": "https://itunes.apple.com/app/apple-store/id953922567567341232323"
  },
  "at": 2,
  "bcat": [
    "IAB17-18",
    "IAB7-42",
    "IAB23",
    "IAB7-28",
    "IAB26",
    "IAB25",
    "IAB9-9",
    "IAB24"
  ],
  "device": {
    "connectiontype": 0,
    "devicetype": 4,
    "didmd5": "d1c553888076489a45af4b6dfb9392eb",
    "didsha1": "81407cd1808b59681f2da1341d8ac62dfa9293fa",
    "geo": {
      "city": "Boston",
      "country": "USA",
      "ipservice": 3,
      "lat": 42.360504,
      "lon": -71.0548,
      "metro": "506",
      "region": "MA",
      "type": 2,
      "zip": "02109"
    },
    "h": 480,
    "ip": "50.255.150.200",
    "js": 0,
    "language": "en",
    "make": "Apple",
    "model": "iPhone",
    "os": "iOS",
    "osv": "4.3.2",
    "pxratio": 1,
    "ua": "Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_3_2 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8H7 Safari/6533.18.5",
    "w": 320
  },
  "id": "68d49693-6312-40c1-b9bd-68f92e65acac",
  "imp": [
    {
      "displaymanager": "SOMA",
      "ext": {
        
      },
      "id": "1",
      "instl": 0,
      "secure": 0,
      "tagid": "5020536",
      "video": {
        "battr": [
          1,
          3,
          5,
          8,
          9
        ],
        "h": 50,
        "linearity": 1,
        "maxbitrate": 4000,
        "maxduration": 60,
        "mimes": [
          "video/3gpp",
          "video/mov",
          "video/mp4",
          "video/mpv"
        ],
        "minbitrate": 250,
        "minduration": 5,
        "placement": 1,
        "pos": 0,
        "protocols": [
          2,
          5
        ],
        "skip": 0,
        "startdelay": -2,
        "w": 320
      }
    }
  ],
  "regs": {
    "coppa": 0,
    "ext": {
      
    }
  },
  "source": {
    "pchain": "07bcf65f187117b4:5020393"
  },
  "tmax": 1500,
  "user": {
    "ext": {
      
    }
  }
}

Bid Response

json
{
    "id": "820e63f1-d68a-4267-ad8d-c63b9329d3db",
    "bidid":"76fd96e67525bcfbe7ffe930e78079a1",
    "cur":"USD",
    "seatbid": [
        {
            "bid": [
                {
                    "id": "820e63f1-d68a-4267-ad8d-c63b9329d3db:1",
                    "impid": "1",
                    "adid": "3",
                    "cid": "41",
                    "crid": "31",
                    "price": 0.175,
                    "adomain": [
                        "example.com"
                    ],
                    "nurl": "https://www.example.com/dsp/nurl/?id=40ee9162748b87ecfbcd12a651f40bbd&price=${AUCTION_PRICE}",
                    "adm": "[NEXUS_XML_AD_MARKUP]"
                }
            ],
            "seat":"25"
        }
    ]
}

XML Ad Markup - VAST 2.0 legacy example

xml
<VAST version=\"2.0\">
    <Ad id=\"601364\">
        <InLine>
            <AdSystem>2.0</AdSystem>
            <AdTitle>5773100</AdTitle>
            <Creatives>
                <Creative>
                    <Linear>
                        <Duration>00:00:15</Duration>
                        <MediaFiles>
                            <MediaFile height=\"360\" width=\"640\" type=\"video/mp4\" delivery=\"streaming\">https://www.example.com/videos/video.mp4</MediaFile>
                        </MediaFiles>
                    </Linear>
                </Creative>
                <Creative>
                    <CompanionAds>
                        <Companion height=\"250\" width=\"300\" id=\"573242\">
                            <HTMLResource>
                                <![CDATA[<A href=\"https://tracker.example.com/beacon\" target=\"_blank\"><IMG SRC=\"https://www.example.com/images/image.png\" ALT=\"Click Here\" /></A><img src=\"https://tracker.example.com/images/image.png\" height=\"1\" width=\"1\" />]]>
                            </HTMLResource>
                        </Companion>
                    </CompanionAds>
                </Creative>
            </Creatives>
        </InLine>
    </Ad>
</VAST>

White-label Nexus API documentation