Skip to content

Commit d1238a0

Browse files
dgirardiahmadlob
authored andcommitted
PBjs Core Price Floors Module: improve logging on bid rejections to clarify which CPM is being compared with which floor (#8655)
* Price floors module: improve logging on bid rejections to clarify which CPM is being compared with which floor * Use full precision in log message
1 parent b4dbda4 commit d1238a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/priceFloors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ export function addBidResponseHook(fn, adUnitCode, bid) {
751751
flooredBid.status = CONSTANTS.BID_STATUS.BID_REJECTED;
752752
// if floor not met update bid with 0 cpm so it is not included downstream and marked as no-bid
753753
flooredBid.cpm = 0;
754-
logWarn(`${MODULE_NAME}: ${flooredBid.bidderCode}'s Bid Response for ${adUnitCode} was rejected due to floor not met`, bid);
754+
logWarn(`${MODULE_NAME}: ${flooredBid.bidderCode}'s Bid Response for ${adUnitCode} was rejected due to floor not met (adjusted cpm: ${bid?.floorData?.cpmAfterAdjustments}, floor: ${floorInfo?.matchingFloor})`, bid);
755755
return fn.call(this, adUnitCode, flooredBid);
756756
}
757757
return fn.call(this, adUnitCode, bid);

0 commit comments

Comments
 (0)