Skip to content

Commit 9f3698e

Browse files
yieldliftdani-nova
authored andcommitted
Yieldlift Bid Adapter: improve adomain (prebid#8708)
* added meta.adomain * Changing adomain parameter to advertiserDomains * Merging master into branch Co-authored-by: Danijel Predarski <[email protected]>
1 parent c222ced commit 9f3698e

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

modules/yieldliftBidAdapter.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,7 @@ export const spec = {
9696
creativeId: bid.crid,
9797
netRevenue: DEFAULT_NET_REVENUE,
9898
currency: DEFAULT_CURRENCY,
99-
meta: {
100-
adomain: bid.adomain
101-
}
99+
meta: { advertiserDomains: bid && bid.advertiserDomains ? bid.advertiserDomains : [] }
102100
})
103101
})
104102
} else {

test/spec/modules/yieldliftBidAdapter_spec.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const RESPONSE = {
4545
'price': 0.18,
4646
'adm': '<script>adm</script>',
4747
'adid': '144762342',
48-
'adomain': [
48+
'advertiserDomains': [
4949
'https://dummydomain.com'
5050
],
5151
'iurl': 'iurl',
@@ -74,7 +74,7 @@ const RESPONSE = {
7474
'price': 0.1,
7575
'adm': '<script>adm2</script>',
7676
'adid': '144762342',
77-
'adomain': [
77+
'advertiserDomains': [
7878
'https://dummydomain.com'
7979
],
8080
'iurl': 'iurl',
@@ -208,7 +208,7 @@ describe('YieldLift', function () {
208208
expect(bids[index]).to.have.property('height', RESPONSE.body.seatbid[0].bid[index].h);
209209
expect(bids[index]).to.have.property('ad', RESPONSE.body.seatbid[0].bid[index].adm);
210210
expect(bids[index]).to.have.property('creativeId', RESPONSE.body.seatbid[0].bid[index].crid);
211-
expect(bids[index].meta).to.have.property('adomain', RESPONSE.body.seatbid[0].bid[index].adomain);
211+
expect(bids[index].meta).to.have.property('advertiserDomains', RESPONSE.body.seatbid[0].bid[index].advertiserDomains);
212212
expect(bids[index]).to.have.property('ttl', 30);
213213
expect(bids[index]).to.have.property('netRevenue', true);
214214
}

0 commit comments

Comments
 (0)