You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
patmmccann
changed the title
Deletion of deal rendering module
Deletion of deal rendering module, replacing with example
May 3, 2023
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.
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
The text was updated successfully, but these errors were encountered: