Dynamic Video Ad Placement

The following code example is a JavaScript prebid.js adUnit configuration, using the oneVideo adapter, for retrieving a Dynamic Video Ad Placement (MREC). 
Please note the display: 1 key and value within the adUnits[0].bids[0].params.video.display that returns a player embed tag within the bid-response.

var adUnits = [{
code: 'video1',
sizes: [640, 480],
mediaTypes: {
video: {
context: "instream"
}
},
bids: [{
bidder: 'oneVideo',
params: {
video: {
playerWidth: 480,
playerHeight: 640,
mimes: ['video/mp4', 'application/javascript'],
position: 1,
display: 1
},
site: {
id: 1,
page: 'https://vidible.com'
},
pubId: 'HBExchange'
}
}]
}];
Have more questions? Submit a request