Open ethyde opened 2 years ago
When using safeframes there is no dependency on the prebid global. Otherwise, in some situations the creative will try to find and call [global].renderAd(). This, or at least the documentation for this, should be improved.
Hello,
If I understand well, whatever the namespace of pbjs
, UC should be able to find it and use it if necessary?
Not sure whether you are looking for this, but changing the name here and building the project will allow you to use another name than pbjs
https://github.com/prebid/prebid-universal-creative/blob/master/package.json#L20
Make sure you are using the same prebid-name-space in PrebidJS too.
Thanks for yours reply @pm-harshad-mane et @dgirardi :)
So I have to fork or clone this repo to be able to customize the global
namespace?
For now yes, but we'll keep this issue open to track identifying the global similar to https://github.com/prebid/Prebid.js/blob/master/src/prebidGlobal.js
I think that can be usable to implement some parameter for PUC like ucTagData.prebidName = 'pbjs'
yeah, that method could even support multiple custom prebid instances on a page by passing a key/val along with each unit when setting targeting, like your example, pbjsGlobal = onePbjs
on one ad request and pbjsGlobal = twoPbjs
on another, PUC could directly know which version a render call needs to be sent to by default, no custom PUC build necessary
Hello everyone,
It's not very clear following this issue https://github.com/prebid/prebid-universal-creative/issues/51. How can we customize the $$PREBID_GLOBAL$$ name without having to create a custom build?