The Konduit Accelerate module applies the Konduit video acceleration optimization to a publisher’s existing Prebid setup. This optimization can reduce load times and increase ad starts. To install the module, follow these instructions:
Build your Prebid.js package in one of two ways:
gulp build --modules=konduitWrapper,...
pbjs.adServers.konduit.buildVastUrl
function.We recommended using the Konduit module function call in the bidsBackHandler
callback function.
pbjs.que.push(function() {
pbjs.addAdUnits(videoAdUnits);
pbjs.requestBids({
bidsBackHandler: function(bids) {
var winnerBid = pbjs.getHighestCpmBids('videoAd')[0];
var vastTagUrl = pbjs.adServers.konduit.buildVastUrl({
bid: winnerBid,
params: {
konduit_id: '{konduit_client_id}',
}
});
invokeVideoPlayer(vastTagUrl);
}
});
});