Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deletion of deal rendering module, replacing with example #4535

Open
patmmccann opened this issue May 3, 2023 · 1 comment
Open

Deletion of deal rendering module, replacing with example #4535

patmmccann opened this issue May 3, 2023 · 1 comment

Comments

@patmmccann
Copy link
Collaborator

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 patmmccann changed the title Deletion of deal rendering module Deletion of deal rendering module, replacing with example May 3, 2023
@bretg
Copy link
Contributor

bretg commented Jun 14, 2023

@patmmccann - opened #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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants