diff --git a/modules/adformBidAdapter.js b/modules/adformBidAdapter.js index dc30e152861..3d0ed0fba79 100644 --- a/modules/adformBidAdapter.js +++ b/modules/adformBidAdapter.js @@ -170,6 +170,7 @@ export const spec = { currency: response.win_cur, netRevenue: bidRequest.netRevenue !== 'gross', ttl: 360, + meta: { advertiserDomains: response && response.adomain ? response.adomain : [] }, ad: response.banner, bidderCode: bidRequest.bidder, transactionId: bid.transactionId, diff --git a/modules/concertBidAdapter.js b/modules/concertBidAdapter.js index 3eb75799705..60634151aba 100644 --- a/modules/concertBidAdapter.js +++ b/modules/concertBidAdapter.js @@ -98,6 +98,7 @@ export const spec = { height: bid.height, ad: bid.ad, ttl: bid.ttl, + meta: { advertiserDomains: bid && bid.adomain ? bid.adomain : [] }, creativeId: bid.creativeId, netRevenue: bid.netRevenue, currency: bid.currency diff --git a/modules/undertoneBidAdapter.js b/modules/undertoneBidAdapter.js index 743cb07b21e..14a765206b6 100644 --- a/modules/undertoneBidAdapter.js +++ b/modules/undertoneBidAdapter.js @@ -158,7 +158,8 @@ export const spec = { creativeId: bidRes.adId, currency: bidRes.currency, netRevenue: bidRes.netRevenue, - ttl: bidRes.ttl || 360 + ttl: bidRes.ttl || 360, + meta: { advertiserDomains: bidRes.adomain ? bidRes.adomain : [] } }; if (bidRes.mediaType && bidRes.mediaType === 'video') { bid.vastXml = bidRes.ad; diff --git a/modules/unrulyBidAdapter.js b/modules/unrulyBidAdapter.js index 15fe0fefe8b..36a156d5c66 100644 --- a/modules/unrulyBidAdapter.js +++ b/modules/unrulyBidAdapter.js @@ -31,6 +31,7 @@ const serverResponseToBid = (bid, rendererInstance) => ({ netRevenue: true, creativeId: bid.bidId, ttl: 360, + meta: { advertiserDomains: bid && bid.adomain ? bid.adomain : [] }, currency: 'USD', renderer: rendererInstance, mediaType: VIDEO diff --git a/test/spec/modules/adformBidAdapter_spec.js b/test/spec/modules/adformBidAdapter_spec.js index 18b2565d4f8..79ea76da8dd 100644 --- a/test/spec/modules/adformBidAdapter_spec.js +++ b/test/spec/modules/adformBidAdapter_spec.js @@ -258,6 +258,7 @@ describe('Adform adapter', function () { assert.equal(result.currency, 'EUR'); assert.equal(result.netRevenue, true); assert.equal(result.ttl, 360); + assert.deepEqual(result.meta.advertiserDomains, []) assert.equal(result.ad, ''); assert.equal(result.bidderCode, 'adform'); assert.equal(result.transactionId, '5f33781f-9552-4ca1'); diff --git a/test/spec/modules/concertBidAdapter_spec.js b/test/spec/modules/concertBidAdapter_spec.js index df999f45df9..1b869d51bde 100644 --- a/test/spec/modules/concertBidAdapter_spec.js +++ b/test/spec/modules/concertBidAdapter_spec.js @@ -116,7 +116,7 @@ describe('ConcertAdapter', function () { describe('spec.interpretResponse', function() { it('should return bids in the shape expected by prebid', function() { const bids = spec.interpretResponse(bidResponse, bidRequest); - const requiredFields = ['requestId', 'cpm', 'width', 'height', 'ad', 'ttl', 'creativeId', 'netRevenue', 'currency']; + const requiredFields = ['requestId', 'cpm', 'width', 'height', 'ad', 'ttl', 'meta', 'creativeId', 'netRevenue', 'currency']; requiredFields.forEach(function(field) { expect(bids[0]).to.have.property(field); diff --git a/test/spec/modules/undertoneBidAdapter_spec.js b/test/spec/modules/undertoneBidAdapter_spec.js index e8729965c50..0faa321be5f 100644 --- a/test/spec/modules/undertoneBidAdapter_spec.js +++ b/test/spec/modules/undertoneBidAdapter_spec.js @@ -358,6 +358,7 @@ describe('Undertone Adapter', () => { expect(bid.cpm).to.equal(100); expect(bid.width).to.equal(300); expect(bid.height).to.equal(250); + expect(bid.meta.advertiserDomains).to.deep.equal([]); expect(bid.creativeId).to.equal(15); expect(bid.currency).to.equal('USD'); expect(bid.netRevenue).to.equal(true); diff --git a/test/spec/modules/unrulyBidAdapter_spec.js b/test/spec/modules/unrulyBidAdapter_spec.js index 9ece8927ef7..b087ba042a9 100644 --- a/test/spec/modules/unrulyBidAdapter_spec.js +++ b/test/spec/modules/unrulyBidAdapter_spec.js @@ -148,6 +148,7 @@ describe('UnrulyAdapter', function () { netRevenue: true, creativeId: 'mockBidId', ttl: 360, + meta: { advertiserDomains: [] }, currency: 'USD', renderer: fakeRenderer, mediaType: 'video'