Skip to content

Commit

Permalink
add support for advertiser domains (#6908)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacobkmiller authored Jun 1, 2021
1 parent 4fe2be1 commit 5cca29e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/underdogmediaBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ export const spec = {
currency: 'USD',
netRevenue: false,
ttl: mid.ttl || 60,
meta: {
advertiserDomains: mid.advertiser_domains || []
}
};

if (bidResponse.cpm <= 0) {
Expand Down
2 changes: 2 additions & 0 deletions test/spec/modules/underdogmediaBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ describe('UnderdogMedia adapter', function () {
mids: [
{
ad_code_html: 'ad_code_html',
advertiser_domains: ['domain1'],
cpm: 2.5,
height: '600',
mid: '32634',
Expand All @@ -300,6 +301,7 @@ describe('UnderdogMedia adapter', function () {

expect(bids).to.be.lengthOf(2);

expect(bids[0].meta.advertiserDomains).to.deep.equal(['domain1'])
expect(bids[0].bidderCode).to.equal('underdogmedia');
expect(bids[0].cpm).to.equal(2.5);
expect(bids[0].width).to.equal('160');
Expand Down

0 comments on commit 5cca29e

Please sign in to comment.