Skip to content

Commit

Permalink
Vox Bid Adapter: Add placeholder to pass advertiser domains (#6884)
Browse files Browse the repository at this point in the history
* Add  stub to pass adomains.

* Vox Bid Adapter: add unit test for advertiserDomains.

Co-authored-by: Petrov Denis <d.petrov@hybrid.ai>
  • Loading branch information
hybrid-ai and HybridPetrov authored Jun 1, 2021
1 parent 7d02e2f commit d7d5f62
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion modules/voxBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,10 @@ function buildBid(bidData) {
netRevenue: true,
mediaType: BANNER,
ttl: TTL,
content: bidData.content
content: bidData.content,
meta: {
advertiserDomains: bidData.advertiserDomains || [],
}
};

if (bidData.placement === 'video') {
Expand Down
4 changes: 3 additions & 1 deletion test/spec/modules/voxBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,8 @@ describe('VOX Adapter', function() {
content: 'html',
width: 100,
height: 100
}
},
advertiserDomains: ['voxexchange.io']
}
]
}
Expand All @@ -257,6 +258,7 @@ describe('VOX Adapter', function() {
expect(bids[0].height).to.equal(100)
expect(bids[0].currency).to.equal('USD')
expect(bids[0].netRevenue).to.equal(true)
expect(bids[0].meta.advertiserDomains).to.deep.equal(['voxexchange.io'])
expect(typeof bids[0].ad).to.equal('string')
})
it('should return a In-Image bid', function() {
Expand Down

0 comments on commit d7d5f62

Please sign in to comment.