From 42675a0fbfcd2184c92cbc7772cc890cfa869bb0 Mon Sep 17 00:00:00 2001 From: Fatih Kaya Date: Fri, 4 Nov 2022 22:39:28 +0300 Subject: [PATCH] Revert "Admatic adapter: host param control changed" This reverts commit de7ac85981b1ba3ad8c5d1dc95c5dadbdf5b9895. --- modules/admaticBidAdapter.js | 6 +----- test/spec/modules/admaticBidAdapter_spec.js | 8 +++----- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/modules/admaticBidAdapter.js b/modules/admaticBidAdapter.js index cf54557c6c8..5556a181f7f 100644 --- a/modules/admaticBidAdapter.js +++ b/modules/admaticBidAdapter.js @@ -20,7 +20,7 @@ export const spec = { let isValid = false; if (typeof bid.params !== 'undefined') { let isValidNetworkId = _validateId(getValue(bid.params, 'networkId')); - let isValidHost = _validateString(getValue(bid.params, 'host')); + let isValidHost = getValue(bid.params, 'host'); isValid = isValidNetworkId && isValidHost; } @@ -198,8 +198,4 @@ function _validateId(id) { return (parseInt(id) > 0); } -function _validateString(str) { - return (typeof str == 'string'); -} - registerBidder(spec); diff --git a/test/spec/modules/admaticBidAdapter_spec.js b/test/spec/modules/admaticBidAdapter_spec.js index ffe2274ae7b..c7d391cfaca 100644 --- a/test/spec/modules/admaticBidAdapter_spec.js +++ b/test/spec/modules/admaticBidAdapter_spec.js @@ -3,7 +3,7 @@ import {spec, storage} from 'modules/admaticBidAdapter.js'; import {newBidder} from 'src/adapters/bidderFactory.js'; import {getStorageManager} from 'src/storageManager'; -const ENDPOINT = 'https://layer.serve.admatic.com.tr/pb'; +const ENDPOINT = 'https://layer.serve.admatic.com.tr/v1'; describe('admaticBidAdapter', () => { const adapter = newBidder(spec); @@ -18,8 +18,7 @@ describe('admaticBidAdapter', () => { let bid = { 'bidder': 'admatic', 'params': { - 'networkId': 10433394, - 'host': 'layer.serve.admatic.com.tr' + 'networkId': 10433394 }, 'adUnitCode': 'adunit-code', 'sizes': [[300, 250], [300, 600]], @@ -38,8 +37,7 @@ describe('admaticBidAdapter', () => { delete bid.params; bid.params = { - 'networkId': 0, - 'host': 'layer.serve.admatic.com.tr' + 'networkId': 0 }; expect(spec.isBidRequestValid(bid)).to.equal(false);