diff --git a/package.json b/package.json index a05a958dd17..31a8f10efc4 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "description": "Header Bidding Management Library", "main": "src/prebid.js", "scripts": { + "serve": "gulp serve", "test": "gulp test", "lint": "gulp lint" }, diff --git a/src/prebid.js b/src/prebid.js index 9ad72409990..70653de0bcb 100644 --- a/src/prebid.js +++ b/src/prebid.js @@ -1009,7 +1009,9 @@ $$PREBID_GLOBAL$$.markWinningBidAsUsed = function (markBidRequest) { } if (bids.length > 0) { - bids[0].status = CONSTANTS.BID_STATUS.RENDERED; + const winningBid = bids[0]; + auctionManager.addWinningBid(winningBid); + winningBid.status = CONSTANTS.BID_STATUS.RENDERED; } };