Bug New Rubicon Adapter
Hi,
I just discovered a bug for the new Rubicon adapter. When rubicon is winning the bid, they can't render and display the ads on the websites who are using prebid in multiple iframes (adserver, adnetwork ...) . We have an error in the console :
Uncaught TypeError : Cannot read property 'renderCreative' of undefined
So i remplaced this line :
;(function (w, fe) { w.rubicontag.renderCreative(fe, "XXXX", "XX"); }(window.top, (document.body || document.documentElement)));
By :
;(function (w, fe) { w.rubicontag.renderCreative(fe, "XXXX", "XX"); }(parent.window, (document.body || document.documentElement)));
parent.window instead of window.top line 216 in prebid.js
It's working and I think it's better (iframe or not).
Thank you,
@Deimos01 Thanks for bug report. This change looks good to me. @bretg mind taking a look as well.
Good catch - thanks @Deimos01. Working with the team to test a more robust approach. Hope to have a pull request in the next day or two.
@mkendall07 -- pull request 265
PR #265 has been merged to master manually with this commit. Closing.
Reopening, will close with release of v0.8.0.
Released with 0.8.0