Skip to content

Commit

Permalink
GumGum Bid Adapter : add support for displaymanager and displaymanage…
Browse files Browse the repository at this point in the history
…rver fields (#11286)

* displaymanager: add field for displaymanager and displaymanagerver

* fix: displayManager to include 'gumgum'

* fix: test case
  • Loading branch information
ahzgg authored Apr 4, 2024
1 parent 0bcd57f commit 797adc1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/gumgumBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 2 additions & 0 deletions test/spec/modules/gumgumBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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] };
Expand Down

0 comments on commit 797adc1

Please sign in to comment.