Back to Publisher API Reference
pbjs.registerBidAdapter(bidderAdapter, bidderCode)
Registers a custom bid adapter for use within Prebid.js.
Kind: static method of pbjs.
Request Params:
| Param | Type | Description |
|---|---|---|
bidderAdapter |
function |
Adapter instance that returns a callBids function |
bidderCode |
string |
Code that identifies the adapter |
Example
function myAdapter() {
return { callBids: function() { /* ... */ } };
}
pbjs.registerBidAdapter(myAdapter, 'my');