Header Bidding / Prebid Server
This article provides a guide for integrating with Prebid Server with Mobkoi as a bidder on the publisher's website.
Configuration
const adUnits = [
{
code: 'banner-ad',
mediaTypes: {
banner: { sizes: [300, 200] },
},
bids: [
{
bidder: 'mobkoi',
params: {
placementId: '<-- Placement ID provided by Mobkoi -->',
},
},
],
},
];
pbjs.que.push(function () {
// Configuration for enabling the User ID module on the client side.
// This helps maximising demands.
pbjs.setConfig({
userSync: {
userIds: [
{
name: 'mobkoiId',
storage: {
type: 'cookie',
name: '_mobkoi_id',
expires: 30, // days
},
},
],
},
});
pbjs.addAdUnits(adUnits);
});
Last updated