relevantDigital.getInstance()
Access supported Relevant Yield runtime data and the configured Prebid instance.
Use relevantDigital.getInstance() to access the Relevant Yield runtime object.
Use only the documented fields. Other fields and methods can change or be removed without notice.
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?