Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 655 Bytes

File metadata and controls

21 lines (17 loc) · 655 Bytes
layout api_prebidjs
title pbjs.mergeBidderConfig(options)
description mergeBidderConfig API
sidebarType 1

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.