diff --git a/modules/yieldliftBidAdapter.js b/modules/yieldliftBidAdapter.js index 9fe1bfe84fc..fddc9a0d50b 100644 --- a/modules/yieldliftBidAdapter.js +++ b/modules/yieldliftBidAdapter.js @@ -96,9 +96,7 @@ export const spec = { creativeId: bid.crid, netRevenue: DEFAULT_NET_REVENUE, currency: DEFAULT_CURRENCY, - meta: { - adomain: bid.adomain - } + meta: { advertiserDomains: bid && bid.advertiserDomains ? bid.advertiserDomains : [] } }) }) } else { diff --git a/test/spec/modules/yieldliftBidAdapter_spec.js b/test/spec/modules/yieldliftBidAdapter_spec.js index 86a7b83e2c6..abb5a868c77 100644 --- a/test/spec/modules/yieldliftBidAdapter_spec.js +++ b/test/spec/modules/yieldliftBidAdapter_spec.js @@ -45,7 +45,7 @@ const RESPONSE = { 'price': 0.18, 'adm': '', 'adid': '144762342', - 'adomain': [ + 'advertiserDomains': [ 'https://dummydomain.com' ], 'iurl': 'iurl', @@ -74,7 +74,7 @@ const RESPONSE = { 'price': 0.1, 'adm': '', 'adid': '144762342', - 'adomain': [ + 'advertiserDomains': [ 'https://dummydomain.com' ], 'iurl': 'iurl', @@ -208,7 +208,7 @@ describe('YieldLift', function () { expect(bids[index]).to.have.property('height', RESPONSE.body.seatbid[0].bid[index].h); expect(bids[index]).to.have.property('ad', RESPONSE.body.seatbid[0].bid[index].adm); expect(bids[index]).to.have.property('creativeId', RESPONSE.body.seatbid[0].bid[index].crid); - expect(bids[index].meta).to.have.property('adomain', RESPONSE.body.seatbid[0].bid[index].adomain); + expect(bids[index].meta).to.have.property('advertiserDomains', RESPONSE.body.seatbid[0].bid[index].advertiserDomains); expect(bids[index]).to.have.property('ttl', 30); expect(bids[index]).to.have.property('netRevenue', true); }