Skip to content

Commit

Permalink
add support for loop number. Add test coverage for loop number (#8673)
Browse files Browse the repository at this point in the history
  • Loading branch information
OronW authored Jul 12, 2022
1 parent 5681e50 commit f2ca64f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/minutemediaBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ function generateBidParameters(bid, bidderRequest) {
sizes: sizesArray,
floorPrice: Math.max(getFloor(bid, mediaType), params.floorPrice),
bidId: getBidIdParameter('bidId', bid),
loop: getBidIdParameter('bidderRequestsCount', bid),
bidderRequestId: getBidIdParameter('bidderRequestId', bid),
transactionId: getBidIdParameter('transactionId', bid),
};
Expand Down
3 changes: 3 additions & 0 deletions test/spec/modules/minutemediaBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ describe('minutemediaAdapter', function () {
'org': 'jdye8weeyirk00000001'
},
'bidId': '299ffc8cca0b87',
'loop': 1,
'bidderRequestId': '1144f487e563f9',
'auctionId': 'bfc420c3-8577-4568-9766-a8a935fb620d',
'mediaTypes': {
Expand All @@ -71,6 +72,7 @@ describe('minutemediaAdapter', function () {
'org': 'jdye8weeyirk00000001'
},
'bidId': '299ffc8cca0b87',
'loop': 1,
'bidderRequestId': '1144f487e563f9',
'auctionId': 'bfc420c3-8577-4568-9766-a8a935fb620d',
'mediaTypes': {
Expand All @@ -91,6 +93,7 @@ describe('minutemediaAdapter', function () {
'testMode': true
},
'bidId': '299ffc8cca0b87',
'loop': 2,
'bidderRequestId': '1144f487e563f9',
'auctionId': 'bfc420c3-8577-4568-9766-a8a935fb620d',
}
Expand Down

0 comments on commit f2ca64f

Please sign in to comment.