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

relevantDigital.getInstance()

Access supported Relevant Yield runtime data and the configured Prebid instance.

Use relevantDigital.getInstance() to access the Relevant Yield runtime object.

Supported fields

siteData

The Generic site data object for the site. Its contents depend on the Generic site data settings in Prebid parameters.

pbjs

The Prebid instance used by Relevant Yield. Use this instead of window.pbjs if you may rename the global Prebid variable later.

Example

window.relevantDigital = window.relevantDigital || {};
relevantDigital.cmd = relevantDigital.cmd || [];
relevantDigital.cmd.push(() => {
     const { siteData } = relevantDigital.getInstance();
     console.info('Some setting:', siteData.someCustomSetting);
});

Last updated

Was this helpful?