Skip to content

Commit df312c1

Browse files
jsnellbakerharpere
authored andcommitted
add console message when number of adunits exceeds point (#3707)
* add console message when number of adunits exceeds point * include additional information in log message
1 parent 0664a18 commit df312c1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/prebid.js

+6
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,12 @@ $$PREBID_GLOBAL$$.requestBids = hook('async', function ({ bidsBackHandler, timeo
467467
}
468468

469469
const auction = auctionManager.createAuction({adUnits, adUnitCodes, callback: bidsBackHandler, cbTimeout, labels});
470+
471+
let adUnitsLen = adUnits.length;
472+
if (adUnitsLen > 15) {
473+
utils.logInfo(`Current auction ${auction.getAuctionId()} contains ${adUnitsLen} adUnits.`, adUnits);
474+
}
475+
470476
adUnitCodes.forEach(code => targeting.setLatestAuctionForAdUnit(code, auction.getAuctionId()));
471477
auction.callBids();
472478
return auction;

0 commit comments

Comments
 (0)