From 5882d151a13b42f197568d23fbcb374d05b66f47 Mon Sep 17 00:00:00 2001 From: oronw Date: Sun, 24 Jul 2022 15:46:57 +0300 Subject: [PATCH] added logic to detect the loop number --- modules/kueezBidAdapter.js | 1 + test/spec/modules/kueezBidAdapter_spec.js | 3 +++ 2 files changed, 4 insertions(+) diff --git a/modules/kueezBidAdapter.js b/modules/kueezBidAdapter.js index f1156376ff5..4e0278603fd 100644 --- a/modules/kueezBidAdapter.js +++ b/modules/kueezBidAdapter.js @@ -244,6 +244,7 @@ function generateBidParameters(bid, bidderRequest) { const bidObject = { adUnitCode: getBidIdParameter('adUnitCode', bid), bidId: getBidIdParameter('bidId', bid), + loop: getBidIdParameter('bidderRequestsCount', bid), bidderRequestId: getBidIdParameter('bidderRequestId', bid), floorPrice: Math.max(getFloorPrice(bid, mediaType), paramsFloorPrice), mediaType, diff --git a/test/spec/modules/kueezBidAdapter_spec.js b/test/spec/modules/kueezBidAdapter_spec.js index 16440965765..cd95a9ebdc6 100644 --- a/test/spec/modules/kueezBidAdapter_spec.js +++ b/test/spec/modules/kueezBidAdapter_spec.js @@ -53,6 +53,7 @@ describe('kueezBidAdapter', function () { 'org': 'test-publisher-id' }, 'bidId': '5wfg9887sd5478', + 'loop': 1, 'bidderRequestId': 'op87952ewq8567', 'auctionId': '87se98rt-5789-8735-2546-t98yh5678231', 'mediaTypes': { @@ -71,6 +72,7 @@ describe('kueezBidAdapter', function () { 'org': 'test-publisher-id' }, 'bidId': '5wfg9887sd5478', + 'loop': 1, 'bidderRequestId': 'op87952ewq8567', 'auctionId': '87se98rt-5789-8735-2546-t98yh5678231', 'mediaTypes': { @@ -91,6 +93,7 @@ describe('kueezBidAdapter', function () { 'testMode': true }, 'bidId': '5wfg9887sd5478', + 'loop': 2, 'bidderRequestId': 'op87952ewq8567', 'auctionId': '87se98rt-5789-8735-2546-t98yh5678231', }