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 Required for Secure Pages Whether or not the creative assets need to use HTTPS. 0 for non-secure, 1 for secure. Default is non-secure. 1, 0
tag_id Optional Identifies the ad placement or ad tag which the ad will serve to. "placement_1_A"
position Optional Position on the page. Please refer to the Position table below. 1
mimes Required for Video Supported content MIME types. ["video/mp4", "application/javascript"]
maxduration Optional Maximum duration in seconds for this video. 30
protocols Optional Supported VAST versions. [1,2,4,5]

Position

Value Description
0 Unknown
1 Above the Fold
3 Below the Fold
4 Header
5 Footer
6 Sidebar
7 Fullscreen

API

Value Description
1 VPAID 1.0
2 VPAID 2.0
3 MRAID 1.0
4 ORMMA
5 MRAID 2.0

Protocols

Value Description
1 VAST 1.0
2 VAST 2.0
3 VAST 3.0
4 VAST 1.0 Wrapper
5 VAST 2.0 Wrapper
6 VAST 3.0 Wrapper
7 VAST 4.0
8 DAAST 1.0

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
                }
            }]
    },{
        code: 'div-gpt-ad-1438287399331-1',
        sizes: [[728, 90], [970, 90]],
        bids: [{
                    bidder: 'conversant',
                    params: {
                      site_id: '12345',
                      bidfloor: 1.50,
                      secure: 1,
                      tag_id: 'placement_1_A',
                      position: 1
                    }
            }]
    }];
    pbjs.addAdUnits(adUnits);

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