Back to Publisher API Reference

pbjs.mergeBidderConfig(options)

This is the same as setBidderConfig(options, true) – it merges the supplied bidder config into the config structure rather than replacing it.

The page usage is:

pbjs.mergeBidderConfig({
   bidders: ['bidderA'],
   config: {
      customArg: "customVal"
   }
});

Intrepration: When ‘bidderA’ calls getConfig('customArg'), it will receive the object that contains ‘customArg’. If any other bidder calls getConfig('customArg'), it will receive nothing.

Back to Publisher API Reference