npm prebid.js 0.5.0
Prebid 0.5.0 released!

latest releases: 9.19.0, 9.18.0, 9.17.0...
8 years ago

New Features in this release

How to add bidder Pulsepoint:

var adUnits = [{
        code: '/9968336/header-bid-tag-0',
        sizes: [[300, 250], [300, 600]],
        bids: [{
            bidder: 'pulsepoint',
                params: {
                    cf: '300X250',  //String adSize identifier 
                    cp: 123345,     //Number Publisher Id
                    ct: 123456      //Number  Ad Tag Id
                }
        }]
}];

How to add bidder AOL:

var adUnits = [{
        code: '/9968336/header-bid-tag-0',
        sizes: [[300, 250], [300, 600]],
        bids: [{
            bidder: 'aol',
            params: {
                placement: 'TO ADD', //String placement
                network: 'TO ADD'    //String network,
                //optional params
                sizeId : 123,       //Number
                alias : 'TO ADD,    //String
                size : [300,250]    //Array[Number]
            }
        }]
}];

How to add bidder IndexExchange:

var adUnits = [{
        code: '/9968336/header-bid-tag-0',
        sizes: [[300, 250], [300, 600]],
        bids: [{
                bidder: 'indexExchange',
                params: {
                    id: 'TO ADD',  //String - id of placement required
                    siteID: TO ADD,  //Number - site id required
                    timeout: 1000, //Number Optional
                    tier2SiteID: 'TO ADD', //String Optional
                    tier3SiteID: 'TO ADD' //String Optional
                }
        }]
}];

Send custom query params in AppNexus Adapter:

bidder: 'appnexus',
    params: {
       placementId: '2251610',
       queryParam : 'value',  // <--- new unmatched params will automatically get sent in the query like "&queryParam=value&anotherQuery=value2"
       anotherQuery : 'value2'
    }

Real time Bid adjustment feature

    pbjs.bidderSettings = {
        aol: {
            bidCpmAdjustment : function(bidCpm){  // <-- new field - adjust the bid in real time before the auction takes place
                return bidCpm * .9;
            }
        }
    };

[beta] Alias Bidder

/**
 * Aliased bidders will use the existing adapter and require the same params as the existing adapter. 
 * The only change is the bidderCode is updated. Currently this feature is considered beta and only AppNexus adapter supports aliasing. 
 * @param  {String} bidderCode Existing bidderCode that should be aliased
 * @param  {String} alias      The aliased bidderCode
 */
pbjs.aliasBidder('appnexus', 'brealtime')

Inherit adServerTargeting setting from standard setting (#148)

pbjs.bidderSettings = {
    aol: {
        bidCpmAdjustment : function(bidCpm){
            return bidCpm * .9;
        }
        //AOL bidder will inherit from "standard" adserverTargeting keys below
    }
    standard: {
        adserverTargeting: [{
            key: "hb_bidder",
            val: function(bidResponse) {
                return bidResponse.bidderCode;
            }
        }, {
            key: "hb_adid",
            val: function(bidResponse) {
                return bidResponse.adId;
            }
        }, {
            key: "hb_pb",
            val: function(bidResponse) {
                return bidResponse.pbMg;
            }
        }]
    }
};

Bug fixes in this release

  • Fixed issue with timing of callback hanlder (e3bc5a7)
  • Fixed issue with Sovrn adapter sizzes (bd9b655)
  • Fixed issue with YieldBot adapter slot name cases sensitivity (f695c72)
  • Other misc bug fixes

Don't miss a new prebid.js release

NewReleases is sending notifications on new releases.