Skip to content

Commit

Permalink
cleaned up device.ip support
Browse files Browse the repository at this point in the history
  • Loading branch information
ym-abaranov committed Sep 27, 2021
1 parent 8abe4df commit 24f92b1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
4 changes: 0 additions & 4 deletions modules/yieldmoBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
7 changes: 0 additions & 7 deletions test/spec/modules/yieldmoBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' } },
Expand Down

0 comments on commit 24f92b1

Please sign in to comment.