Skip to content

Commit

Permalink
add support for adomains
Browse files Browse the repository at this point in the history
  • Loading branch information
Taras Saveliev committed Apr 1, 2022
1 parent 3ac6d48 commit 6e316a8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/yandexBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ export const spec = {

netRevenue: true,
ttl: DEFAULT_TTL,

meta: {
advertiserDomains: rtbBid.adomain && rtbBid.adomain.length > 0 ? rtbBid.adomain : [],
}
};

prBid.ad = rtbBid.adm;
Expand Down
2 changes: 2 additions & 0 deletions test/spec/modules/yandexBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ describe('Yandex adapter', function () {
expect(rtbBid.currency).to.equal('USD');
expect(rtbBid.netRevenue).to.equal(true);
expect(rtbBid.ttl).to.equal(180);

expect(rtbBid.meta.advertiserDomains).to.deep.equal(['example.com']);
});
});
});

0 comments on commit 6e316a8

Please sign in to comment.