Skip to content

Prebid 0.4.0 released!

Pre-release
Pre-release

Choose a tag to compare

@mkendall07 mkendall07 released this 23 Oct 15:06
· 10650 commits to master since this release

New 0.4.0 release with some minor configuration adjustments and functionality.

Recommended configuration change for use with DFP

Recommend to use div_id for the adUnit.code instead of the adUnitPath that was previously recommended. See this link for details.

Before

var adUnits = [{
        code: '/9968336/header-bid-tag-0',
        sizes: [[300, 250], [300, 600]],
        bids: [{
            bidder: 'appnexus',
            params: { placementId: 'TO ADD' }
        }]
}];

After

var adUnits = [{
        code: 'div-id-header-bid-tag-0',
        sizes: [[300, 250], [300, 600]],
        bids: [{
            bidder: 'appnexus',
            params: { placementId: 'TO ADD' }
        }]
}];

Adding a custom adapter

 pbjs.que.push(function(){
        var customAdapter = function customAdapter() {
            return {
                callBids: function(params) {
                    pbjs.loadScript('//path.to.custom.demand.js', function() {
                        var bid = pbjs.createBid(1);
                        //set bid options
                        //bid.cpm = ...
                        //add bid to responses
                        pbjs.addBidResponse(adunitCode, bid);
                    });
                }
            };
        };
        //register your custom adapter
        pbjs.registerBidAdapter(customAdapter, 'customAdapter');

        //other configs
        ...
        pbjs.requestBids();

    });

Enhancements in this release

  • Added dynamic adapter support. Adapters can be added in configuration now (API is public)
  • Yieldbot sponsored adapter committed
  • DFP targeting can now use Div Ids as well as slot ids (issue #69)
  • alwaysUseBid configuration param available for sending custom key targeting
  • Updated integration example page
  • Some basic unit tests added

Bug fixes in this release

  • Fix issue with price buckets
  • Fix issue with Criteo adapter
  • Fix issue with bidsBackHandler not getting bidResponses
  • Other misc bug fixes