Skip to content

Commit

Permalink
Setting the bidCurrency to adServerCurrency for people using bidcpmad…
Browse files Browse the repository at this point in the history
…justment
  • Loading branch information
Muhammad Ubaid Ashraf committed Jan 13, 2025
2 parents ea182c0 + bf59478 commit 7c01d90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/auction.js
Original file line number Diff line number Diff line change
Expand Up @@ -910,9 +910,9 @@ function setKeys(keyValues, bidderSettings, custBidObj, bidReq) {
export function adjustBids(bid) {
let bidPriceAdjusted = adjustCpm(bid.cpm, bid);

if (bidPriceAdjusted >= 0) {
if (bidPriceAdjusted.cpm >= 0) {
bid.cpm = bidPriceAdjusted;
bid.currency = adServerCurrency;
bid.currency = adServerCurrency
}
}

Expand Down

0 comments on commit 7c01d90

Please sign in to comment.