Search code examples
javascriptprebid.jsprebid

Prebid.js - Run multiple auctions one after another


I have been trying to setup multiple auctions to run on a single Prebid.js instance or multiple instances. I have already attempted to run an auction normally after one had ended however it never sends the command through, I have also tried renaming the entire library to something custom which had also failed.

My question is, if something like this is even possible and how I would go about doing it?


Solution

  • Upon further testing and messing around with it, we have somewhat solved the issue in a very hacky way. What we decided to do was create a friendly iframe and put our version of prebid into that iframe from there we put our script into the iframe as well which interacts with the webpage outside of the iframe. It's a very hacky way of doing it but it seems to work.