From d3cdcec4002a1a258dad448f7a5aea00d4e6ad22 Mon Sep 17 00:00:00 2001 From: JacobKlein26 <42449375+JacobKlein26@users.noreply.github.com> Date: Wed, 5 Jan 2022 10:08:45 -0500 Subject: [PATCH] NextMillennium Bid Adapter: refresh_count variable moved to into ext (#7904) * moved into ext * added space * updated test file with new refresh_count location --- modules/nextMillenniumBidAdapter.js | 4 +++- test/spec/modules/nextMillenniumBidAdapter_spec.js | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/nextMillenniumBidAdapter.js b/modules/nextMillenniumBidAdapter.js index a800500faf0..4791740bf2f 100644 --- a/modules/nextMillenniumBidAdapter.js +++ b/modules/nextMillenniumBidAdapter.js @@ -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]++, } } } diff --git a/test/spec/modules/nextMillenniumBidAdapter_spec.js b/test/spec/modules/nextMillenniumBidAdapter_spec.js index d95ca1bf173..0dfee96d0ea 100644 --- a/test/spec/modules/nextMillenniumBidAdapter_spec.js +++ b/test/spec/modules/nextMillenniumBidAdapter_spec.js @@ -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 () {