From 797adc19998c3dced1024fc2712afd76adb193f7 Mon Sep 17 00:00:00 2001 From: ahzgg <163184035+ahzgg@users.noreply.github.com> Date: Thu, 4 Apr 2024 10:25:05 -0600 Subject: [PATCH] GumGum Bid Adapter : add support for displaymanager and displaymanagerver fields (#11286) * displaymanager: add field for displaymanager and displaymanagerver * fix: displayManager to include 'gumgum' * fix: test case --- modules/gumgumBidAdapter.js | 3 ++- test/spec/modules/gumgumBidAdapter_spec.js | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/gumgumBidAdapter.js b/modules/gumgumBidAdapter.js index 7f8627ec5f7..60851d2b4dd 100644 --- a/modules/gumgumBidAdapter.js +++ b/modules/gumgumBidAdapter.js @@ -318,7 +318,8 @@ function buildRequests(validBidRequests, bidderRequest) { const gpid = deepAccess(ortb2Imp, 'ext.data.pbadslot') || deepAccess(ortb2Imp, 'ext.data.adserver.adslot'); let sizes = [1, 1]; let data = {}; - + data.displaymanager = 'Prebid.js - gumgum'; + data.displaymanagerver = '$prebid.version$'; const date = new Date(); const lt = date.getTime(); const to = date.getTimezoneOffset(); diff --git a/test/spec/modules/gumgumBidAdapter_spec.js b/test/spec/modules/gumgumBidAdapter_spec.js index 52cfd0294e7..29e372d0f87 100644 --- a/test/spec/modules/gumgumBidAdapter_spec.js +++ b/test/spec/modules/gumgumBidAdapter_spec.js @@ -192,6 +192,8 @@ describe('gumgumAdapter', function () { const request = { ...bidRequests[0] }; const bidRequest = spec.buildRequests([request])[0]; expect(bidRequest.data.aun).to.equal(bidRequests[0].adUnitCode); + expect(bidRequest.data.displaymanager).to.equal('Prebid.js - gumgum'); + expect(bidRequest.data.displaymanagerver).to.equal(JCSI.pbv); }); it('should set pubProvidedId if the uid and pubProvidedId are available', function () { const request = { ...bidRequests[0] };