From 15378cb9c723210da2c6ed72df6ec39c30609c30 Mon Sep 17 00:00:00 2001 From: Patrick McCann Date: Fri, 19 Jun 2020 12:55:11 -0400 Subject: [PATCH 1/4] add advertiserDomains meta field to ix adapter --- modules/ixBidAdapter.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/ixBidAdapter.js b/modules/ixBidAdapter.js index f4c42080f58..48a80cac32d 100644 --- a/modules/ixBidAdapter.js +++ b/modules/ixBidAdapter.js @@ -128,7 +128,10 @@ function parseBid(rawBid, currency, bidRequest) { bid.meta.networkId = utils.deepAccess(rawBid, 'ext.dspid'); bid.meta.brandId = utils.deepAccess(rawBid, 'ext.advbrandid'); bid.meta.brandName = utils.deepAccess(rawBid, 'ext.advbrand'); - + if (rawBid.adomain && rawBid.adomain.length > 0) { + bid.meta.advertiserDomains = rawBid.adomain; + } + return bid; } From 8cb31a92e2e8f0825ca73ed074c355b90d6479f3 Mon Sep 17 00:00:00 2001 From: Patrick McCann Date: Fri, 19 Jun 2020 13:00:12 -0400 Subject: [PATCH 2/4] Update ixBidAdapter.js --- modules/ixBidAdapter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ixBidAdapter.js b/modules/ixBidAdapter.js index 48a80cac32d..c56da2f3566 100644 --- a/modules/ixBidAdapter.js +++ b/modules/ixBidAdapter.js @@ -131,7 +131,7 @@ function parseBid(rawBid, currency, bidRequest) { if (rawBid.adomain && rawBid.adomain.length > 0) { bid.meta.advertiserDomains = rawBid.adomain; } - + return bid; } From 1205417d731fc6a5964efac1f8a10cfdf6de5d3c Mon Sep 17 00:00:00 2001 From: Patrick McCann Date: Fri, 19 Jun 2020 18:15:44 -0400 Subject: [PATCH 3/4] Update ixBidAdapter_spec.js --- test/spec/modules/ixBidAdapter_spec.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/test/spec/modules/ixBidAdapter_spec.js b/test/spec/modules/ixBidAdapter_spec.js index 114a2226770..25080e03a8c 100644 --- a/test/spec/modules/ixBidAdapter_spec.js +++ b/test/spec/modules/ixBidAdapter_spec.js @@ -888,7 +888,8 @@ describe('IndexexchangeAdapter', function () { meta: { networkId: 50, brandId: 303325, - brandName: 'OECTA' + brandName: 'OECTA', + advertiserDomains: ['www.abc.com'] } } ]; @@ -915,7 +916,8 @@ describe('IndexexchangeAdapter', function () { meta: { networkId: 50, brandId: 303325, - brandName: 'OECTA' + brandName: 'OECTA', + advertiserDomains: ['www.abc.com'] } } ]; @@ -940,7 +942,8 @@ describe('IndexexchangeAdapter', function () { meta: { networkId: 51, brandId: 303326, - brandName: 'OECTB' + brandName: 'OECTB', + advertiserDomains: ['www.abcd.com'] } } ]; From 107a3ec8f0694f5ad5df19853c7015966efb7e60 Mon Sep 17 00:00:00 2001 From: Patrick McCann Date: Fri, 19 Jun 2020 18:30:53 -0400 Subject: [PATCH 4/4] Update ixBidAdapter_spec.js --- test/spec/modules/ixBidAdapter_spec.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/spec/modules/ixBidAdapter_spec.js b/test/spec/modules/ixBidAdapter_spec.js index 25080e03a8c..3e0f5845907 100644 --- a/test/spec/modules/ixBidAdapter_spec.js +++ b/test/spec/modules/ixBidAdapter_spec.js @@ -835,7 +835,8 @@ describe('IndexexchangeAdapter', function () { meta: { networkId: 50, brandId: 303325, - brandName: 'OECTA' + brandName: 'OECTA', + advertiserDomains: ['www.abc.com'] } } ]; @@ -862,7 +863,8 @@ describe('IndexexchangeAdapter', function () { meta: { networkId: 50, brandId: 303325, - brandName: 'OECTA' + brandName: 'OECTA', + advertiserDomains: ['www.abc.com'] } } ];