diff --git a/src/adapters/gumgum.js b/src/adapters/gumgum.js index 551a49042f4..7434444d570 100644 --- a/src/adapters/gumgum.js +++ b/src/adapters/gumgum.js @@ -18,8 +18,7 @@ const GumgumAdapter = function GumgumAdapter() { topWindow = global.top; topScreen = topWindow.screen; } catch (error) { - utils.logError(error); - return; + return utils.logError(error); } function _callBids({ bids }) { @@ -40,7 +39,7 @@ const GumgumAdapter = function GumgumAdapter() { const trackingId = params.inScreen; const nativeId = params.native; const slotId = params.inSlot; - const bid = {}; + const bid = { tmax: $$PREBID_GLOBAL$$.cbTimeout }; /* slot/native ads need the placement id */ switch (true) { diff --git a/test/spec/adapters/gumgum_spec.js b/test/spec/adapters/gumgum_spec.js index fe48ae3a3f4..58958373f94 100644 --- a/test/spec/adapters/gumgum_spec.js +++ b/test/spec/adapters/gumgum_spec.js @@ -114,6 +114,11 @@ describe('gumgum adapter', () => { endpointRequest.to.include('sh'); }); + it('should include the global bid timeout', () => { + const endpointRequest = expect(adLoader.loadScript.firstCall.args[0]); + endpointRequest.to.include(`tmax=${$$PREBID_GLOBAL$$.cbTimeout}`); + }); + it('should include the publisher identity', () => { const endpointRequest = expect(adLoader.loadScript.firstCall.args[0]); endpointRequest.to.include('t=' + TEST.PUBLISHER_IDENTITY);