Header Bidding / Prebid Server
This article provides a guide for integrating with Prebid Server with Mobkoi as a bidder on the publisher's website.
Before starting the integration, make sure that:
All prerequisites have been completed.
The following Prebid.js modules are enabled:
ConsentManagement: Required to support GDPR compliance in the EU.
The publisher enabled
mobkoi
adapter in their Prebid server config.
Configuration
The following example demonstrates how to configure Mobkoi as a bidder using Prebid server. It includes a sample ad unit setup along with the appropriate bidder parameters.
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);
});
Replace the placementId value with the actual ID provided by Mobkoi. Once configured, this will enable Mobkoi to participate in the header bidding auction for the specified ad unit.
Last updated