Skip to content

Commit

Permalink
added logic to detect the loop number (prebid#8733)
Browse files Browse the repository at this point in the history
  • Loading branch information
OronW authored and ccorbo committed Jul 27, 2022
1 parent feb1334 commit 4dcbe9e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/kueezBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 3 additions & 0 deletions test/spec/modules/kueezBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ describe('kueezBidAdapter', function () {
'org': 'test-publisher-id'
},
'bidId': '5wfg9887sd5478',
'loop': 1,
'bidderRequestId': 'op87952ewq8567',
'auctionId': '87se98rt-5789-8735-2546-t98yh5678231',
'mediaTypes': {
Expand All @@ -71,6 +72,7 @@ describe('kueezBidAdapter', function () {
'org': 'test-publisher-id'
},
'bidId': '5wfg9887sd5478',
'loop': 1,
'bidderRequestId': 'op87952ewq8567',
'auctionId': '87se98rt-5789-8735-2546-t98yh5678231',
'mediaTypes': {
Expand All @@ -91,6 +93,7 @@ describe('kueezBidAdapter', function () {
'testMode': true
},
'bidId': '5wfg9887sd5478',
'loop': 2,
'bidderRequestId': 'op87952ewq8567',
'auctionId': '87se98rt-5789-8735-2546-t98yh5678231',
}
Expand Down

0 comments on commit 4dcbe9e

Please sign in to comment.