For the complete documentation index, see llms.txt. This page is also available as Markdown.

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().

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?