relevantDigital.addPrebidConfig()
Add Prebid configuration before the first auction that uses Prebid placements.
Use relevantDigital.addPrebidConfig() to add Prebid configuration. The library calls pbjs.setConfig() before the first Prebid auction.
Your settings are merged into the configuration passed to pbjs.setConfig().
Do not call pbjs.setConfig() directly. Direct configuration can cause unexpected behavior.
When to call it
Call relevantDigital.addPrebidConfig() before the first relevantDigital.loadPrebid() call that includes Prebid placements.
Calls made later have no effect. They are safe, but do not update the existing Prebid configuration.
Example
window.relevantDigital = window.relevantDigital || {};
relevantDigital.cmd = relevantDigital.cmd || [];
relevantDigital.cmd.push(function() {
relevantDigital.addPrebidConfig({ // merge some prebid config
ortb2: {
site: {
keywords: "relevant, yield",
},
},
});
relevantDigital.loadPrebid({ ... }); // load some ads
})Last updated
Was this helpful?