Skip to content

Commit

Permalink
NextMillennium Bid Adapter: refresh_count variable moved to into ext (p…
Browse files Browse the repository at this point in the history
…rebid#7904)

* moved into ext

* added space

* updated test file with new refresh_count location
  • Loading branch information
JacobKlein26 authored and avj83 committed Jan 24, 2022
1 parent fb106cc commit d131f5f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion modules/nextMillenniumBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,14 @@ export const spec = {
window.nmmRefreshCounts[bid.adUnitCode] = window.nmmRefreshCounts[bid.adUnitCode] || 0;
const postBody = {
'id': bid.auctionId,
'refresh_count': window.nmmRefreshCounts[bid.adUnitCode]++,
'ext': {
'prebid': {
'storedrequest': {
'id': getBidIdParameter('placement_id', bid.params)
}
},
'nextMillennium': {
'refresh_count': window.nmmRefreshCounts[bid.adUnitCode]++,
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/spec/modules/nextMillenniumBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ describe('nextMillenniumBidAdapterTests', function() {

it('Check if refresh_count param is incremented', function() {
const request = spec.buildRequests(bidRequestData);
expect(JSON.parse(request[0].data).refresh_count).to.equal(3);
expect(JSON.parse(request[0].data).ext.nextMillennium.refresh_count).to.equal(3);
});

it('Test getUserSyncs function', function () {
Expand Down

0 comments on commit d131f5f

Please sign in to comment.