Prebid.js icon indicating copy to clipboard operation
Prebid.js copied to clipboard

$PREBID_GLOBAL$$ not respected in some Adapters

Open stefanosaittamrf opened this issue 9 years ago • 4 comments

Type of issue

Bug

Description

The following Adapters are not respecting the global naming convention, but they hardcode the pbjs variable instead.

Steps to reproduce

Expected results

I expect to don't have any pbjs hardcoded value into the final bundle

Actual results

I can see the variable, this will make the adapter fails if the global name is different from the defualt, plus it will eventually fail on avoid conflicts for multiple loads of prebid.js (3rd party)

Platform details

All

Other information

None

stefanosaittamrf avatar Jun 30 '17 09:06 stefanosaittamrf

Tagging official contributors of both the adapters. @sebaperez and @JCarterGw submit a PR with this fix. Thanks

jaiminpanchal27 avatar Jun 30 '17 14:06 jaiminpanchal27

I looked into this.

The JCM adapter is using JSONP, but it looks like their server's response assumes that pbjs is the global var.

If it's important to you, you'll either have to get a hold of @JCarterGw or talk to them directly... there's nothing that can be done from our end.

dbemiller avatar Aug 02 '17 15:08 dbemiller

The adapters should follow the standards of using the macro for pbjs global. If this fails at runtime, it's an issue on the adapter's endpoint and should be resolved there.

mkendall07 avatar Aug 15 '17 16:08 mkendall07

Yes. In the case of JCM, that's what needs to happen. @JCarterGw doesn't seem to be paying attention though anymore.

dbemiller avatar Aug 15 '17 16:08 dbemiller