From e0bd6907596e198156d4da6e1596d797c8dc8088 Mon Sep 17 00:00:00 2001 From: skapoorViant <153030693+skapoorViant@users.noreply.github.com> Date: Thu, 25 Apr 2024 10:26:44 -0700 Subject: [PATCH] Called replaceAuctionMacro in viantOrtbBidAdapter to replace Auction_Price --- modules/viantOrtbBidAdapter.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/viantOrtbBidAdapter.js b/modules/viantOrtbBidAdapter.js index ee4cbe2d904..e588568a681 100644 --- a/modules/viantOrtbBidAdapter.js +++ b/modules/viantOrtbBidAdapter.js @@ -51,10 +51,10 @@ export const spec = { onBidWon: function (bid) { if (bid.burl) { utils.triggerPixel(bid.burl); - utils.replaceAuctionPrice(bid.burl, bid.price); + utils.triggerPixel(utils.replaceAuctionPrice(bid.burl, bid.originalCpm || bid.cpm || bid.price)); } else if (bid.nurl) { utils.triggerPixel(bid.nurl); - utils.replaceAuctionPrice(bid.nurl, bid.price); + utils.triggerPixel(utils.replaceAuctionPrice(bid.nurl, bid.originalCpm || bid.cpm || bid.price)); } } }