From d43427d7997e8ca2d10483da2f6afaf8538ff901 Mon Sep 17 00:00:00 2001 From: Lisa Benmore Date: Tue, 17 Aug 2021 11:16:41 -0700 Subject: [PATCH] Gumgum: fix how we send TTD global placement ID (#7310) * Gumgum: ADJS-1064 Fix how we send TTD global placement ID * updated unit tests * undo unnecessary changes --- modules/gumgumBidAdapter.js | 3 +-- test/spec/modules/gumgumBidAdapter_spec.js | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/modules/gumgumBidAdapter.js b/modules/gumgumBidAdapter.js index 9b4ec41049c..f00254fd4be 100644 --- a/modules/gumgumBidAdapter.js +++ b/modules/gumgumBidAdapter.js @@ -346,8 +346,7 @@ function buildRequests (validBidRequests, bidderRequest) { sizes, url: BID_ENDPOINT, method: 'GET', - gpid: gpid, - data: Object.assign(data, _getBrowserParams(topWindowUrl), _getDigiTrustQueryParams(userId)) + data: Object.assign(data, _getBrowserParams(topWindowUrl), _getDigiTrustQueryParams(userId), { gpid }) }) }); return bids; diff --git a/test/spec/modules/gumgumBidAdapter_spec.js b/test/spec/modules/gumgumBidAdapter_spec.js index 75a9c5c975a..8016d3fb678 100644 --- a/test/spec/modules/gumgumBidAdapter_spec.js +++ b/test/spec/modules/gumgumBidAdapter_spec.js @@ -192,8 +192,8 @@ describe('gumgumAdapter', function () { it('should set the global placement id (gpid)', function () { const req = { ...bidRequests[0], ortb2Imp: { ext: { data: { adserver: { name: 'test', adslot: 123456 } } } } } const bidRequest = spec.buildRequests([req])[0]; - expect(bidRequest).to.have.property('gpid'); - expect(bidRequest.gpid).to.equal(123456); + expect(bidRequest.data).to.have.property('gpid'); + expect(bidRequest.data.gpid).to.equal(123456); }); it('should set the bid floor if getFloor module is not present but static bid floor is defined', function () {