// Illustrative: the Zurla adapter is coming to Prebid.js and
// Prebid Server; bidder code and params are placeholders.
// Already run Prebid? Add the marked 'zurla' entries to your
// ad units; everything else stays as it is today.
var pbjs = pbjs || {};
pbjs.que = pbjs.que || [];
var adUnits = [{
code: 'sidebar',
mediaTypes: { banner: { sizes: [[300, 250], [300, 600]] } },
bids: [
{ bidder: 'yourBidder', params: { /* as today */ } },
{ bidder: 'zurla', params: { publisherId: 'ZRL-000000' } }
]
}, {
code: 'home-feed-2',
mediaTypes: { native: { ortb: { assets: [
{ id: 1, required: 1, title: { len: 90 } },
{ id: 2, required: 1, img: { type: 3, wmin: 600, hmin: 314 } },
{ id: 3, required: 1, data: { type: 1 } } // advertiser name
] } } },
bids: [
{ bidder: 'yourBidder', params: { /* as today */ } },
{ bidder: 'zurla', params: { publisherId: 'ZRL-000000' } }
]
}];
pbjs.que.push(function () {
pbjs.setConfig({
// needs the consentManagementTcf and consentManagementGpp modules
consentManagement: { // wait times in ms: your settings
gdpr: { cmpApi: 'iab', timeout: 3000 }, // IAB TCF v2.3
gpp: { cmpApi: 'iab', timeout: 3000 } // GPP, including US states
}
});
pbjs.addAdUnits(adUnits);
pbjs.requestBids({
bidsBackHandler: function () { /* send bids to your ad server, as today */ }
});
});
// Illustrative: Zurla sets your floors through Prebid's
// Price Floors module; the URL and fallback values are placeholders.
var pbjs = pbjs || {};
pbjs.que = pbjs.que || [];
pbjs.que.push(function () {
pbjs.setConfig({
floors: {
auctionDelay: 60, // placeholder: wait up to 60 ms
endpoint: { url: 'https://floors.zurla.com/v1/ZRL-000000.json' },
data: { // fallback values, used until Zurla's floors arrive
currency: 'USD',
schema: { fields: ['mediaType'] },
values: { banner: 0.30, native: 0.40 }
}
}
});
});
// Illustrative: the Zurla adapter is coming to Prebid.js and
// Prebid Server; bidder code and params are placeholders.
// Already on Prebid Server? Add 'zurla' to your bidders list.
var pbjs = pbjs || {};
pbjs.que = pbjs.que || [];
pbjs.que.push(function () {
pbjs.setConfig({
s2sConfig: [{
accountId: 'YOUR_PBS_ACCOUNT',
bidders: ['yourBidder', 'zurla'], // plus 'zurla' in each ad unit
adapter: 'prebidServer',
enabled: true,
endpoint: 'https://pbs.example.com/openrtb2/auction',
syncEndpoint: 'https://pbs.example.com/cookie_sync',
timeout: 500 // your Prebid Server timeout, in ms (your setting)
}]
});
});