Skip to content

Commit 750b396

Browse files
asurovenko-zetaDecayConstant
authored andcommitted
ZetaGlobalSpp adapter: remove onTimeout (prebid#11576)
1 parent 354c37e commit 750b396

File tree

2 files changed

+0
-26
lines changed

2 files changed

+0
-26
lines changed

modules/zeta_global_sspBidAdapter.js

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import {registerBidder} from '../src/adapters/bidderFactory.js';
33
import {BANNER, VIDEO} from '../src/mediaTypes.js';
44
import {config} from '../src/config.js';
55
import {parseDomain} from '../src/refererDetection.js';
6-
import {ajax} from '../src/ajax.js';
76

87
/**
98
* @typedef {import('../src/adapters/bidderFactory.js').BidRequest} BidRequest
@@ -15,7 +14,6 @@ import {ajax} from '../src/ajax.js';
1514

1615
const BIDDER_CODE = 'zeta_global_ssp';
1716
const ENDPOINT_URL = 'https://ssp.disqus.com/bid/prebid';
18-
const TIMEOUT_URL = 'https://ssp.disqus.com/timeout/prebid';
1917
const USER_SYNC_URL_IFRAME = 'https://ssp.disqus.com/sync?type=iframe';
2018
const USER_SYNC_URL_IMAGE = 'https://ssp.disqus.com/sync?type=image';
2119
const DEFAULT_CUR = 'USD';
@@ -268,25 +266,6 @@ export const spec = {
268266
url: USER_SYNC_URL_IMAGE + syncurl
269267
}];
270268
}
271-
},
272-
273-
onTimeout: function(timeoutData) {
274-
if (timeoutData) {
275-
const payload = timeoutData.map(d => ({
276-
bidder: d?.bidder,
277-
shortname: d?.params?.map(p => p?.tags?.shortname).find(p => p),
278-
sid: d?.params?.map(p => p?.sid).find(p => p),
279-
country: d?.ortb2?.device?.geo?.country,
280-
devicetype: d?.ortb2?.device?.devicetype
281-
}));
282-
ajax(TIMEOUT_URL, null, JSON.stringify(payload), {
283-
method: 'POST',
284-
options: {
285-
withCredentials: false,
286-
contentType: 'application/json'
287-
}
288-
});
289-
}
290269
}
291270
}
292271

test/spec/modules/zeta_global_sspBidAdapter_spec.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -542,11 +542,6 @@ describe('Zeta Ssp Bid Adapter', function () {
542542
expect(payload.imp[0].bidfloor).to.eql(params.bidfloor);
543543
});
544544

545-
it('Timeout should exists and be a function', function () {
546-
expect(spec.onTimeout).to.exist.and.to.be.a('function');
547-
expect(spec.onTimeout([{bidder: '1'}])).to.be.undefined;
548-
});
549-
550545
it('Test schain provided', function () {
551546
const request = spec.buildRequests(bannerRequest, bannerRequest[0]);
552547
const payload = JSON.parse(request.data);

0 commit comments

Comments
 (0)