Skip to content

Commit 287f07c

Browse files
nwlosinskiNorbert Włosiński
and
Norbert Włosiński
authored
add meta.advertiserDomains to bid response (#6942)
Co-authored-by: Norbert Włosiński <[email protected]>
1 parent 40f7f2b commit 287f07c

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

modules/justpremiumBidAdapter.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,10 @@ export const spec = {
9090
netRevenue: true,
9191
currency: bid.currency || 'USD',
9292
ttl: bid.ttl || spec.time,
93-
format: bid.format
93+
format: bid.format,
94+
meta: {
95+
advertiserDomains: bid.adomain && bid.adomain.length > 0 ? bid.adomain : []
96+
}
9497
}
9598
bidResponses.push(bidResponse)
9699
}

test/spec/modules/justpremiumBidAdapter_spec.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ describe('justpremium adapter', function () {
103103
'width': 970,
104104
'price': 0.52,
105105
'format': 'lb',
106-
'adm': 'creative code'
106+
'adm': 'creative code',
107+
'adomain': ['justpremium.com']
107108
}]
108109
},
109110
'pass': {
@@ -123,7 +124,10 @@ describe('justpremium adapter', function () {
123124
netRevenue: true,
124125
currency: 'USD',
125126
ttl: 60000,
126-
format: 'lb'
127+
format: 'lb',
128+
meta: {
129+
advertiserDomains: ['justpremium.com']
130+
},
127131
}
128132
]
129133

@@ -140,6 +144,7 @@ describe('justpremium adapter', function () {
140144
expect(result[0].creativeId).to.equal(3213123)
141145
expect(result[0].netRevenue).to.equal(true)
142146
expect(result[0].format).to.equal('lb')
147+
expect(result[0].meta.advertiserDomains[0]).to.equal('justpremium.com')
143148
})
144149

145150
it('Verify wrong server response', function () {

0 commit comments

Comments
 (0)