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

AppNexus Bid Adapter : plcmt and startdelay mapping function not returning correct values

Open weylandjung opened this issue 2 years ago • 1 comments

https://github.com/prebid/Prebid.js/blob/b557f048770d64371674f08dca21fe3cd8fcc7b3/modules/appnexusBidAdapter.js#L1015-L1036

In the getContextFromPlcmt function, when plcmt is 2 and getContextFromPlcmt is 0, it returns out, rather than returning accompanying_content_pre_roll as expected.

That's because (!ortbStartDelay) in line 1021 evaluates to true, so the function just exits. This may need to be (typeof ortbStartDelay !== undefined).

weylandjung avatar Apr 26 '24 04:04 weylandjung

Thanks for reporting this; I'll take a look and put together a fix.

jsnellbaker avatar Apr 26 '24 13:04 jsnellbaker