From 62e685fadd4c2ec89bca1e9e90f5b40063eaff0d Mon Sep 17 00:00:00 2001 From: sgimenez Date: Mon, 7 Feb 2022 13:05:14 +0100 Subject: [PATCH 1/5] RichaudienceBidAdapter: Change currency floor module --- modules/richaudienceBidAdapter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/richaudienceBidAdapter.js b/modules/richaudienceBidAdapter.js index f90bfd117ac..ac92756d9d3 100755 --- a/modules/richaudienceBidAdapter.js +++ b/modules/richaudienceBidAdapter.js @@ -300,7 +300,7 @@ function raiGetFloor(bid, config) { raiFloor = bid.params.bidfloor; } else if (typeof bid.getFloor == 'function') { let floorSpec = bid.getFloor({ - currency: config.getConfig('currency.adServerCurrency'), + currency: config.getConfig('floors.data.currency') != null ? config.getConfig('floors.data.currency') : 'USD', mediaType: typeof bid.mediaTypes['banner'] == 'object' ? 'banner' : 'video', size: '*' }) From 44441a68c0ed93e80fa646d9e19c60e4cffbf150 Mon Sep 17 00:00:00 2001 From: sgimenez Date: Mon, 7 Feb 2022 13:13:24 +0100 Subject: [PATCH 2/5] New Atempt --- modules/richaudienceBidAdapter.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/richaudienceBidAdapter.js b/modules/richaudienceBidAdapter.js index ac92756d9d3..94472862dd1 100755 --- a/modules/richaudienceBidAdapter.js +++ b/modules/richaudienceBidAdapter.js @@ -300,7 +300,7 @@ function raiGetFloor(bid, config) { raiFloor = bid.params.bidfloor; } else if (typeof bid.getFloor == 'function') { let floorSpec = bid.getFloor({ - currency: config.getConfig('floors.data.currency') != null ? config.getConfig('floors.data.currency') : 'USD', + currency: config.getConfig("floors.data.currency") != null ? config.getConfig("floors.data.currency") : "USD", mediaType: typeof bid.mediaTypes['banner'] == 'object' ? 'banner' : 'video', size: '*' }) @@ -310,5 +310,5 @@ function raiGetFloor(bid, config) { return raiFloor } catch (e) { return 0 - } + } } From 1da2ba54633bae8de8411e7c8acc82bcb1a276f4 Mon Sep 17 00:00:00 2001 From: sgimenez Date: Mon, 7 Feb 2022 13:14:43 +0100 Subject: [PATCH 3/5] new Atempt --- modules/richaudienceBidAdapter.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/richaudienceBidAdapter.js b/modules/richaudienceBidAdapter.js index 94472862dd1..715f8b716a2 100755 --- a/modules/richaudienceBidAdapter.js +++ b/modules/richaudienceBidAdapter.js @@ -290,7 +290,7 @@ function raiGetSyncInclude(config) { return raiSync; } catch (e) { return null; - } + }sudo } function raiGetFloor(bid, config) { @@ -310,5 +310,5 @@ function raiGetFloor(bid, config) { return raiFloor } catch (e) { return 0 - } + } } From dc882c9d0c2e7a47eb17df8e3e11cf04b7a597a3 Mon Sep 17 00:00:00 2001 From: sgimenez Date: Mon, 7 Feb 2022 13:17:26 +0100 Subject: [PATCH 4/5] new Atempt --- modules/richaudienceBidAdapter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/richaudienceBidAdapter.js b/modules/richaudienceBidAdapter.js index 715f8b716a2..feebe1adb76 100755 --- a/modules/richaudienceBidAdapter.js +++ b/modules/richaudienceBidAdapter.js @@ -290,7 +290,7 @@ function raiGetSyncInclude(config) { return raiSync; } catch (e) { return null; - }sudo + } } function raiGetFloor(bid, config) { From 135abeee9b20a430b57ca07681fc37e299e21746 Mon Sep 17 00:00:00 2001 From: sgimenez Date: Mon, 7 Feb 2022 13:34:44 +0100 Subject: [PATCH 5/5] remove single quotes --- modules/richaudienceBidAdapter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/richaudienceBidAdapter.js b/modules/richaudienceBidAdapter.js index feebe1adb76..ac92756d9d3 100755 --- a/modules/richaudienceBidAdapter.js +++ b/modules/richaudienceBidAdapter.js @@ -300,7 +300,7 @@ function raiGetFloor(bid, config) { raiFloor = bid.params.bidfloor; } else if (typeof bid.getFloor == 'function') { let floorSpec = bid.getFloor({ - currency: config.getConfig("floors.data.currency") != null ? config.getConfig("floors.data.currency") : "USD", + currency: config.getConfig('floors.data.currency') != null ? config.getConfig('floors.data.currency') : 'USD', mediaType: typeof bid.mediaTypes['banner'] == 'object' ? 'banner' : 'video', size: '*' })