prebid / prebid-universal-creative

Apache License 2.0
43 stars 69 forks source link

Replace all placeholders with the corresponding ortb assets #211

Closed anitaschiller closed 1 year ago

anitaschiller commented 1 year ago

At the moment only the first occurrence of an ortb placeholder is replaced by the asset value, the second one will be replaced by an empty string.

I found this issue because our native design template uses the same placeholder twice for responsiveness reasons. Depending on the viewport size, one of them has the CSS property display: none but they are both present in the template. When the second occurrence gets displayed, the html element is always empty - I would expect all placeholders with the corresponding asset id to be replaced though.

Thank you for checking! 😊

anitaschiller commented 1 year ago

@musikele thanks for the test, it's now available in the code 😁.