Skip to content

Commit

Permalink
Just Premium: add format parameter (issue #2691) (#2693)
Browse files Browse the repository at this point in the history
* add format parameter to bid response
  • Loading branch information
nwlosinski authored and mike-chowla committed Jun 11, 2018
1 parent a95a8c6 commit 0bad407
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion modules/justpremiumBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ export const spec = {
cpm: bid.price,
netRevenue: true,
currency: bid.currency || 'USD',
ttl: bid.ttl || spec.time
ttl: bid.ttl || spec.time,
format: bid.format
}
bidResponses.push(bidResponse)
}
Expand Down
4 changes: 3 additions & 1 deletion test/spec/modules/justpremiumBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ describe('justpremium adapter', () => {
cpm: 0.52,
netRevenue: true,
currency: 'USD',
ttl: 60000
ttl: 60000,
format: 'lb'
}
]

Expand All @@ -99,6 +100,7 @@ describe('justpremium adapter', () => {
expect(result[0].ttl).to.equal(60000)
expect(result[0].creativeId).to.equal(3213123)
expect(result[0].netRevenue).to.equal(true)
expect(result[0].format).to.equal('lb')
})

it('Verify wrong server response', () => {
Expand Down

0 comments on commit 0bad407

Please sign in to comment.