Skip to content

Commit

Permalink
Add debug info to DOM for prebid creatives (#2158)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Kendall authored and matthewlane committed Feb 16, 2018
1 parent 178955e commit 1b2475e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/prebid.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,9 @@ $$PREBID_GLOBAL$$.renderAd = function (doc, id) {

const { height, width, ad, mediaType, adUrl, renderer } = bid;

const creativeComment = document.createComment(`Creative ${bid.creativeId} served by ${bid.bidder} Prebid.js Header Bidding`);
utils.insertElement(creativeComment, doc, 'body');

if (renderer && renderer.url) {
renderer.render(bid);
} else if ((doc === document && !utils.inIframe()) || mediaType === 'video') {
Expand Down

0 comments on commit 1b2475e

Please sign in to comment.