Prebid.js Integration Instructions

Conversant Prebid.js Integration Instructions

These instructions should be considered part of the 'bidder params' page on the prebid.org website. All other implementation details should be obtained from the standard prebid.js instructions located at that site.

Conversant Bidder

Bidder Code: conversant

Bid Params

Name Scope Description Example
site_id Required The Conversant provided specific site id. "12345"
bidfloor Optional The minimum bid for the ad slot. "1.50"
secure Optional Whether the request should use SSL/HTTPS. Default value is unsecure. 1, 0, true, false

Example Implementation

pbjs.que.push(function() {
    var adUnits = [{
        code: 'div-gpt-ad-1438287399331-0',
        sizes: [[300, 250], [300, 600]],
        bids: [{
                bidder: 'conversant',
                params: {
                  site_id: '12345',
                  secure: 1
                }
            }, {
                bidder: 'appnexus',
                params: {
                  placementId: '4799418'
                }
            }]
    },{
        code: 'div-gpt-ad-1438287399331-1',
        sizes: [[728, 90], [970, 90]],
        bids: [{
                bidder: 'appnexus',
                params: { placementId: '4799418' }
            }, {
                    bidder: 'conversant',
                    params: {
                      site_id: '12345',
                      bidfloor: '1.50',
                      secure: 1
                    }
            }]
    }];
    pbjs.addAdUnits(adUnits);

    pbjs.requestBids({
        bidsBackHandler: function(bidResponses) {
            initAdserver();
        }
    });
});