diff --git a/modules/glomexBidAdapter.js b/modules/glomexBidAdapter.js index 8de3d3724ce..617a1a3d721 100644 --- a/modules/glomexBidAdapter.js +++ b/modules/glomexBidAdapter.js @@ -73,7 +73,10 @@ export const spec = { currency: matchedBid.currency, netRevenue: matchedBid.netRevenue, ttl: matchedBid.ttl, - ad: matchedBid.ad + ad: matchedBid.ad, + meta: { + advertiserDomains: matchedBid.adomain ? matchedBid.adomain : [] + } } bidResponses.push(bidResponse) diff --git a/test/spec/modules/glomexBidAdapter_spec.js b/test/spec/modules/glomexBidAdapter_spec.js index b43623928f7..6e5765c31f5 100644 --- a/test/spec/modules/glomexBidAdapter_spec.js +++ b/test/spec/modules/glomexBidAdapter_spec.js @@ -41,7 +41,8 @@ const RESPONSE = { currency: 'EUR', netRevenue: true, ttl: 300, - ad: '' + ad: '', + adomain: ['glomex.com'] } ] } @@ -128,6 +129,7 @@ describe('glomexBidAdapter', function () { expect(result[0].netRevenue).to.equal(true) expect(result[0].ttl).to.equal(300) expect(result[0].ad).to.equal('') + expect(result[0].meta.advertiserDomains).to.deep.equal(['glomex.com']) }) }) })