pbjs.onEvent('bidResponse', (bid) => { if (bid.dealId /* or any other condition */) { bid.renderer = { renderNow: true, render(bid, doc) { // do your own rendering doc.body.innerHTML = bid.ad; } } } })
We have a module, the MASS module, that allows publishers to apply renderers to display deals. The above code snippet does the same thing. As MASS has been acquired and the module is scheduled for removal, we'd like to add this code snippet but not sure where. The multiformat page actually seems to have no discussion of renderers