From 0e039881a27a803179fda00904c4d67ef0689c0a Mon Sep 17 00:00:00 2001 From: Demetrio Girardi Date: Mon, 11 Jul 2022 05:20:24 -0700 Subject: [PATCH] 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 --- modules/priceFloors.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/priceFloors.js b/modules/priceFloors.js index f397e92055e..900276e6b4e 100644 --- a/modules/priceFloors.js +++ b/modules/priceFloors.js @@ -751,7 +751,7 @@ export function addBidResponseHook(fn, adUnitCode, bid) { flooredBid.status = CONSTANTS.BID_STATUS.BID_REJECTED; // if floor not met update bid with 0 cpm so it is not included downstream and marked as no-bid flooredBid.cpm = 0; - logWarn(`${MODULE_NAME}: ${flooredBid.bidderCode}'s Bid Response for ${adUnitCode} was rejected due to floor not met`, bid); + 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); return fn.call(this, adUnitCode, flooredBid); } return fn.call(this, adUnitCode, bid);