From cc7c0e06dc0308cdc3d1ba06ed783f015a10d17d Mon Sep 17 00:00:00 2001 From: "v.raybaud" Date: Fri, 9 Feb 2024 15:27:18 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20add=20sellerCurrency=20to=20fledge?= =?UTF-8?q?=20auction=20config=20for=20criteo=20bid=20adapter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/criteoBidAdapter.js | 4 +--- test/spec/modules/criteoBidAdapter_spec.js | 6 +++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/modules/criteoBidAdapter.js b/modules/criteoBidAdapter.js index fcf8d2ad9533..3b2344234da4 100644 --- a/modules/criteoBidAdapter.js +++ b/modules/criteoBidAdapter.js @@ -298,9 +298,6 @@ export const spec = { if (!sellerSignals.floor && bidRequest.params.bidFloor) { sellerSignals.floor = bidRequest.params.bidFloor; } - if (!sellerSignals.sellerCurrency && bidRequest.params.bidFloorCur) { - sellerSignals.sellerCurrency = bidRequest.params.bidFloorCur; - } if (body?.ext?.sellerSignalsPerImp !== undefined) { const sellerSignalsPerImp = body.ext.sellerSignalsPerImp[bidId]; if (sellerSignalsPerImp !== undefined) { @@ -317,6 +314,7 @@ export const spec = { auctionSignals: {}, decisionLogicUrl: FLEDGE_DECISION_LOGIC_URL, interestGroupBuyers: Object.keys(perBuyerSignals), + sellerCurrency: sellerSignals.currency }, }); }); diff --git a/test/spec/modules/criteoBidAdapter_spec.js b/test/spec/modules/criteoBidAdapter_spec.js index ce07c6e49bca..94fb4ef00855 100755 --- a/test/spec/modules/criteoBidAdapter_spec.js +++ b/test/spec/modules/criteoBidAdapter_spec.js @@ -2576,7 +2576,8 @@ describe('The Criteo bidding adapter', function () { sellerSignalsPerImp: { 'test-bidId': { foo2: 'bar2', - } + currency: 'USD' + }, }, }, }, @@ -2646,8 +2647,8 @@ describe('The Criteo bidding adapter', function () { foo: 'bar', foo2: 'bar2', floor: 1, - sellerCurrency: 'EUR', }, + sellerCurrency: 'USD' }, }); expect(interpretedResponse.fledgeAuctionConfigs[1]).to.deep.equal({ @@ -2669,7 +2670,6 @@ describe('The Criteo bidding adapter', function () { sellerSignals: { foo: 'bar', floor: 1, - sellerCurrency: 'EUR', }, }, });