From 24f92b1f66ec9346a5b408d81e75a67e2ee75668 Mon Sep 17 00:00:00 2001 From: Anton Baranov Date: Mon, 27 Sep 2021 13:26:22 -0700 Subject: [PATCH] cleaned up device.ip support --- modules/yieldmoBidAdapter.js | 4 ---- test/spec/modules/yieldmoBidAdapter_spec.js | 7 ------- 2 files changed, 11 deletions(-) diff --git a/modules/yieldmoBidAdapter.js b/modules/yieldmoBidAdapter.js index e676db3da1ab..ee3da0f552cb 100644 --- a/modules/yieldmoBidAdapter.js +++ b/modules/yieldmoBidAdapter.js @@ -454,14 +454,10 @@ function openRtbSite(bidRequest, bidderRequest) { * @return Object OpenRTB's 'device' object */ function openRtbDevice(bidRequest) { - const ip = utils.deepAccess(bidRequest, 'params.device.ip'); const deviceObj = { ua: navigator.userAgent, language: (navigator.language || navigator.browserLanguage || navigator.userLanguage || navigator.systemLanguage), }; - if (ip) { - deviceObj.ip = ip; - } return deviceObj; } diff --git a/test/spec/modules/yieldmoBidAdapter_spec.js b/test/spec/modules/yieldmoBidAdapter_spec.js index 2d180d32ea06..3eee9e444530 100644 --- a/test/spec/modules/yieldmoBidAdapter_spec.js +++ b/test/spec/modules/yieldmoBidAdapter_spec.js @@ -483,13 +483,6 @@ describe('YieldmoAdapter', function () { expect(buildAndGetData([mockVideoBid({schain})]).schain).to.deep.equal(schain); }); - it('should add ip to the video bidRequest', () => { - const device = { - ip: '111.222.333.444' - }; - expect(buildAndGetData([mockVideoBid(null, {device})]).device.ip).to.be.equal(device.ip); - }); - it('should add gpid to the video request', function () { const ortb2Imp = { ext: { data: { pbadslot: '/6355419/Travel/Europe/France/Paris' } },