Prebid.js: Bug in renderAd for video
Type of issue
bug
Description
https://github.com/prebid/Prebid.js/blob/6d39d8b2292d031a1d3e599749a7ceda74d379bc/src/prebid.js#L532
On line #532 it does array.filter, which always returns a new Array. Then at #534 it looks for .video
on that array. Since the variable is called adUnit
, I would guess it’s supposed to take the first index of the array.
Steps to reproduce
Set up a video adUnit and have a winning bid.
Test page
https://playground.cpex.cz/combination
Expected results
Call videoModule.renderBid
and hopefully render something 😃 Not sure what follows then, I’m in middle of figuring out how to do instream ads.
Actual results
ERROR: Error trying to write ad. Ad render call ad id <adId> was prevented from writing to the main document.
Platform details
Mac OS, latest Chrome, Prebid 8.12.9
About this issue
- Original URL
- State: open
- Created 9 months ago
- Comments: 18 (9 by maintainers)
We have a folder with example pages for video.js in https://github.com/prebid/Prebid.js/tree/master/integrationExamples/videoModule/videojs perhaps one of these can be useful