diff --git a/src/bidmanager.js b/src/bidmanager.js index d3ee1ab7d79..bef2b0a0542 100644 --- a/src/bidmanager.js +++ b/src/bidmanager.js @@ -93,6 +93,11 @@ function getBidderRequest(bidder, adUnitCode) { * This function should be called to by the bidder adapter to register a bid response */ exports.addBidResponse = function (adUnitCode, bid) { + if (!adUnitCode) { + utils.logWarn('No adUnitCode supplied to addBidResponse, response discarded'); + return; + } + if (bid) { const { requestId, start } = getBidderRequest(bid.bidderCode, adUnitCode);