[ prebid ] video

  • download prebid.js and build support for video-enabled adapter ( i.e. dfpAdServerVideo adapter for DFP adserver )

adunit array

videoAdUnit = {

size: [640, 480],

mediaTypes: {

video: { //

context: 'instream' // outstream

}

}

}

NOTE :

instream : advertisement served alongside video content ( before, during, after video content )

configuration setting

pbjs.setConfig({

  usePrebidCache: true

})

instream : invokeVideoPlayer(url) to invoke your own video player


pbjs.requestBids({

  bidBackHandler: function(bids) {

    var videoUrl = pbjs.adServers.dfp.buildVideoUrl({

       adUnit: videoAdUnit,

       params: {

         iu: '/XXX/whatever_whatever_whatever'

       }

     });

     invokeVideoPlayer(videoUrl); // 

  }

});

 

outstream : advertisement does not have video player on page

specify renderer for each adUnit

way1 : proprietary publisher renderer

way2: AppNexus renderer

way3: demand source video player as renderer ( default )

googletag.display('div-id')

 

 

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s