diff --git a/modules/ixBidAdapter.js b/modules/ixBidAdapter.js index 37a3dccbb9f..af9f1d2abe9 100644 --- a/modules/ixBidAdapter.js +++ b/modules/ixBidAdapter.js @@ -76,6 +76,12 @@ function parseBid(rawBid, currency) { bid.netRevenue = NET_REVENUE; bid.currency = currency; bid.creativeId = rawBid.hasOwnProperty('crid') ? rawBid.crid : '-'; + bid.ix = { + dspid: utils.deepAccess(rawBid, 'ext.dspid'), + advbrandid: utils.deepAccess(rawBid, 'ext.advbrandid'), + advbrand: utils.deepAccess(rawBid, 'ext.advbrand'), + adomain: rawBid.adomain + }; return bid; } diff --git a/modules/openxBidAdapter.js b/modules/openxBidAdapter.js index e465e44b25b..b8c004f21b7 100644 --- a/modules/openxBidAdapter.js +++ b/modules/openxBidAdapter.js @@ -115,6 +115,9 @@ function createBannerBidResponses(oxResponseObj, {bids, startTime}) { bidResponse.tbd = adUnit.tbd; } bidResponse.ts = adUnit.ts; + bidResponse.openx = { + brand_id: adUnit.brand_id + }; bidResponses.push(bidResponse); diff --git a/modules/pubmaticBidAdapter.js b/modules/pubmaticBidAdapter.js index 9044597c742..0d642e1e42f 100644 --- a/modules/pubmaticBidAdapter.js +++ b/modules/pubmaticBidAdapter.js @@ -958,7 +958,12 @@ export const spec = { netRevenue: NET_REVENUE, ttl: 300, referrer: parsedRequest.site && parsedRequest.site.ref ? parsedRequest.site.ref : '', - ad: bid.adm + ad: bid.adm, + pubmatic: { + dspid: utils.deepAccess(bid, 'ext.dspid'), + advid: utils.deepAccess(bid, 'ext.advid'), + adomain: bid.adomain, + } }; if (parsedRequest.imp && parsedRequest.imp.length > 0) { parsedRequest.imp.forEach(req => { diff --git a/test/spec/modules/ixBidAdapter_spec.js b/test/spec/modules/ixBidAdapter_spec.js index 6bf7a0331a8..0a0618aba33 100644 --- a/test/spec/modules/ixBidAdapter_spec.js +++ b/test/spec/modules/ixBidAdapter_spec.js @@ -424,7 +424,13 @@ describe('IndexexchangeAdapter', function () { currency: 'USD', ttl: 35, netRevenue: true, - dealId: undefined + dealId: undefined, + ix: { + dspid: 50, + advbrandid: 303325, + advbrand: 'OECTA', + adomain: ['www.abc.com'] + } } ]; const result = spec.interpretResponse({ body: DEFAULT_BANNER_BID_RESPONSE }); @@ -445,7 +451,13 @@ describe('IndexexchangeAdapter', function () { currency: 'USD', ttl: 35, netRevenue: true, - dealId: undefined + dealId: undefined, + ix: { + dspid: 50, + advbrandid: 303325, + advbrand: 'OECTA', + adomain: ['www.abc.com'] + } } ]; const result = spec.interpretResponse({ body: bidResponse }); @@ -466,7 +478,13 @@ describe('IndexexchangeAdapter', function () { currency: 'JPY', ttl: 35, netRevenue: true, - dealId: undefined + dealId: undefined, + ix: { + dspid: 50, + advbrandid: 303325, + advbrand: 'OECTA', + adomain: ['www.abc.com'] + } } ]; const result = spec.interpretResponse({ body: bidResponse }); @@ -487,7 +505,13 @@ describe('IndexexchangeAdapter', function () { currency: 'USD', ttl: 35, netRevenue: true, - dealId: 'deal' + dealId: 'deal', + ix: { + dspid: 50, + advbrandid: 303325, + advbrand: 'OECTA', + adomain: ['www.abc.com'] + } } ]; const result = spec.interpretResponse({ body: bidResponse });