prebid.github.io icon indicating copy to clipboard operation
prebid.github.io copied to clipboard

Deletion of deal rendering module, replacing with example

Open patmmccann opened this issue 1 year ago • 1 comments

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

patmmccann avatar May 03 '23 20:05 patmmccann

@patmmccann - opened https://github.com/prebid/prebid.github.io/pull/4642 as the easy thing here.

Will need someone else to refactor the rendering documentation. I don't think that's a requirement for merging the PBJS 8 docs, but we can leave this item open until done.

bretg avatar Jun 14 '23 20:06 bretg