Skip to content

Commit

Permalink
fix issues in integration example
Browse files Browse the repository at this point in the history
  • Loading branch information
jsut committed Jul 8, 2021
1 parent b8ff1de commit ef2ded7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integrationExamples/postbid/bidViewabilityIO_example.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@
Object.keys(bidResponses).forEach(adUnitCode => {
var highestCpmBids = pbjs.getHighestCpmBids(adUnitCode);
var winner = highestCpmBids.pop();
var iframe = document.getElementById(adUnitCode);
var iframeDoc = iframe.contentWindow.document;
if (winner && winner.mediaType === 'banner') {
var iframe = document.getElementById(adUnitCode);
var iframeDoc = iframe.contentWindow.document;
pbjs.renderAd(iframeDoc, winner.adId);
} else if (winner) {
iframe.width = 300;
Expand Down

0 comments on commit ef2ded7

Please sign in to comment.