Back to Internal API Reference

pbjs.registerBidAdapter(bidderAdapter, bidderCode)

This function provides a way to register a bid adapter for use by Prebid.js. The intended use case is in registering a non-open-source adapter that a publisher may add into their Prebid.js package. After calling this function, Prebid.js will recognize the biddercode in adunits and everywhere a bidder code can be used.

Param Scope Type Description
bidderAdapter Required function bid adapter instance that returns a callBids function
bidderCode Required string code to correlate with the bid adapter
let myAdapter = function myAdapter() {
            return {
                callBids: function(p) {
                    ...
                }
            };
        };
        pbjs.registerBidAdapter(myAdapter, 'my');

Back to Internal API Reference