Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversant adapter: add adomain, remove digitrust #6495

Merged
merged 16 commits into from
Mar 31, 2021
Merged
5 changes: 4 additions & 1 deletion modules/conversantBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,10 @@ export const spec = {
ttl: 300,
netRevenue: true
};
bid.meta = {};
if (conversantBid.adomain && conversantBid.adomain.length > 0) {
bid.meta.advertiserDomains = conversantBid.adomain;
}

if (request.video) {
if (responseAd.charAt(0) === '<') {
Expand Down Expand Up @@ -331,7 +335,6 @@ function collectEids(bidRequests) {
'criteo.com': 1,
'id5-sync.com': 1,
'parrable.com': 1,
'digitru.st': 1,
'liveintent.com': 1
};
request.userIdAsEids.forEach(function(eid) {
Expand Down
1 change: 1 addition & 0 deletions test/spec/modules/conversantBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,7 @@ describe('Conversant adapter tests', function() {
expect(bid).to.have.property('creativeId', '1000');
expect(bid).to.have.property('width', 300);
expect(bid).to.have.property('height', 250);
expect(bid.meta.advertiserDomains).to.deep.equal(['https://example.com']);
expect(bid).to.have.property('ad', 'markup000<img src="notify000" />');
expect(bid).to.have.property('ttl', 300);
expect(bid).to.have.property('netRevenue', true);
Expand Down