Prebid 0.7.0 Release
New Features in this release
- New public API for
bidWon
Event can be listened to when bids are registered - New adapter for NginAd (contributed by @nginadfoundation)
- [Beta] Updated adapter for AppNexus Adapter uses new SDK for loading ads and groups requests.
- New adapter for TripleLift Adapter added (contributed by @mattjone )
- Dynamic adapter selection Updated build process to specify which adapters to include in the final build. Choose adapters in
package.json
- Rubicon legacy adapter removed All implementers should be using the updated adapter
rubicon.js
. - HTTPS support for all adapters all adapters now support HTTPS.
New public API for bidWon
event
//register event
pbjs.onEvent('bidWon', function(data){
console.log('winner!');
console.log(data); //bid info
});
//turn off event
pbjs.offEvent('bidWon');
New adapter for NginAd - how to add
var adUnits = [{
code: '/9968336/header-bid-tag-0',
sizes: [[300, 250], [300, 600]],
bids: [{
bidder: 'nginad',
params: {
pzoneid: '7', // <String> PublisherAdZoneID
nginadDomain: "server.nginad.com" // the domain where you installed NginAd
}
}]
}];
[Beta] Updated adapter for AppNexus:
How to use the new adapter:
- Update
package.json
with the name ofappnexusAst
for AppNexus adapter. - Generate the build using
gulp build
- Use the output at
build/dist/prebid.js
var adUnits = [{
code: '/9968336/header-bid-tag-0',
sizes: [[300, 250], [300, 600]],
bids: [{
bidder: 'appnexus',
params: {
placementId: '2251610', //placementId || invCode && member required
invCode : '1234ABC', //Inventory Code - has to be used in combination with member
member : '12345', //member ID - has to be used in combination with invCode
keywords : {foo : 'bar' } //Query string segment params. These are GLOBAL Params not tag level.
}
}]
}];
New adapter for TripleLift - how to add:
var adUnits = [{
code: '/9968336/header-bid-tag-0',
sizes: [[300, 250], [300, 600]],
bids: [{
bidder: 'triplelift',
params: {
inventoryCode: 'headerbidding_placement' }
}
}]
}];
Dynamic adapter selection
Inside package.json
you can specify which adapters to be included in the build to optimize file size of prebid.js
Pacakge.json:
"adapters": [
"adform",
"aol",
"appnexus",
"indexExchange",
"openx",
"pubmatic",
"pulsepoint",
"rubicon",
"rubiconLegacy",
"sovrn",
"springserve",
"yieldbot",
"nginad",
"triplelift"
],
- Update pacakge.json with the desired adapters
- Run
gulp build
orgulp serve
to generate a new build - Get the build from
build/dist/prebid.js
Bug fixes in this release
- Misc bug fixes for AOL (0783419)
- Fix for PubMatic not always firing tracking impressions & IE support (24fe2b0), (#249)
- Other misc bug fixes (see the full commit log here: 0.6.0...master)