Skip to content

Commit fdc0ed9

Browse files
karimMourrajorgeluisrocha
authored andcommitted
CORE: add bid to winningBids when marking as used (prebid#9612)
* sets bid.status to rendered * adds winnings bid when marking as used * updates tests
1 parent d06c184 commit fdc0ed9

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "Header Bidding Management Library",
55
"main": "src/prebid.js",
66
"scripts": {
7+
"serve": "gulp serve",
78
"test": "gulp test",
89
"lint": "gulp lint"
910
},

src/prebid.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1009,7 +1009,9 @@ $$PREBID_GLOBAL$$.markWinningBidAsUsed = function (markBidRequest) {
10091009
}
10101010

10111011
if (bids.length > 0) {
1012-
bids[0].status = CONSTANTS.BID_STATUS.RENDERED;
1012+
const winningBid = bids[0];
1013+
auctionManager.addWinningBid(winningBid);
1014+
winningBid.status = CONSTANTS.BID_STATUS.RENDERED;
10131015
}
10141016
};
10151017

0 commit comments

Comments
 (0)