relevantDigital.addAmazonConfig()
Configure Amazon UAM or TAM before the first auction that uses Amazon placements.
Use relevantDigital.addAmazonConfig() to add settings for Amazon UAM or TAM. The library calls apstag.init() before the first auction that includes Amazon placements.
Your settings are merged into the configuration passed to apstag.init().
Do not call apstag.init() directly. Direct initialization can cause unexpected behavior.
When to call it
Call relevantDigital.addAmazonConfig() before the first relevantDigital.loadPrebid() call that includes Amazon placements.
Calls made later have no effect. They are safe, but do not update the existing Amazon configuration.
Example
window.relevantDigital = window.relevantDigital || {};
relevantDigital.cmd = relevantDigital.cmd || [];
relevantDigital.cmd.push(function() {
relevantDigital.addAmazonConfig({ // merge some amazon config
params: { "SOME_KEY": "SOME_VALUE" },
});
relevantDigital.loadPrebid({ ... }); // load some ads
})Last updated
Was this helpful?