📖 Example of OpenRTB Video Bid Request and Response
This article provides an example of a typical OpenRTB bid request and response for video. These examples follow the OpenRTB specification and are meant to illustrate how video-specific parameters are passed in the request and how the response is structured — including a VAST tag in the adm field.
📤 Example Bid Request [Video]
{
"id": "request-id-12345",
"device": {
"ip": "198.51.100.23",
"ua": "Mozilla/5.0 (iPhone; CPU iPhone OS 16_0 like Mac OS X)",
"os": "iOS",
"osv": "16.0",
"make": "Apple",
"model": "iPhone",
"devicetype": 4,
"geo": {
"country": "USA",
"lat": 37.7749,
"lon": -122.4194
},
"carrier": "ExampleCarrier"
},
"app": {
"id": "app-id-67890",
"name": "Example Paint App",
"bundle": "com.example.paint",
"storeurl": "https://itunes.apple.com/app/id1234567890",
"cat": ["IAB24"]
},
"imp": [
{
"id": "imp-id-abcde",
"bidfloor": 3.5,
"bidfloorcur": "USD",
"secure": 1,
"video": {
"w": 300,
"h": 250,
"linearity": 1,
"pos": 0,
"mimes": ["video/mp4", "video/webm"],
"protocols": [2, 3, 5, 6],
"minduration": 5,
"maxduration": 120
}
}
],
"at": 2,
"tmax": 500,
"cur": ["USD"]
}
📥 Example Bid Response [Video]
{
"id": "request-id-12345",
"seatbid": [
{
"bid": [
{
"id": "bid-id-7890",
"impid": "imp-id-abcde",
"price": 4.75,
"adm": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><VAST version=\"3.0\"><Ad id=\"ad-id-111\"><Wrapper><AdSystem version=\"1.0\">ExampleAdServer</AdSystem><VASTAdTagURI><![CDATA[https://ads.example.com/vast?price=${AUCTION_PRICE}]]></VASTAdTagURI></Wrapper></Ad></VAST>",
"adomain": ["examplegames.com"],
"cid": "campaign-id-456",
"crid": "creative-id-999",
"w": 300,
"h": 250
}
],
"seat": "example-seat"
}
],
"cur": "USD"
}