Cross-Player Prebid Component API

The Cross-Player Prebid Component supports the doPrebid(prebidConfig) API.

doPrebid(prebidConfig)

Use this API to start the Prebid process with the Prebid configuration options provided. The Component will invoke Prebid.js using the Prebid configuration options and handle the response. If needed, the Component will then pass the Prebid results over to the primary ad server and retrieve the final URL to be used to retrieve the selected ad.

Arguments

  • prebidConfig
    Specifies the Prebid configuration options that are to be used when calling Prebid.js. The options can be expressed in one of the following formats:
    • JSON object containing all the needed configuration options.
    • URL, which loads in a file containing the configuration options expressed in a JSON object.

Return Value

None

Sample Code

window.prebidPluginCP.doPrebid('https://my-url-to-prebid-options.json');

Further Reading