Skip to content

Commit

Permalink
Conversant adapter: add adomain, remove digitrust (prebid#6495)
Browse files Browse the repository at this point in the history
* Update eids.js

* Update eids_spec.js

* Update eids.js

* Update pubmaticBidAdapter_spec.js

* Update eids.js

* Update eids_spec.js

* Update conversantBidAdapter_spec.js

* Update rubiconBidAdapter_spec.js

* Update conversantBidAdapter_spec.js

* Delete test/spec/adapters directory

* Update userId_spec.js

* Update conversantBidAdapter.js

* Update conversantBidAdapter_spec.js

* Update conversantBidAdapter_spec.js

* Update conversantBidAdapter_spec.js
  • Loading branch information
patmmccann authored and marc_tappx committed Apr 13, 2021
1 parent e5777a2 commit d9a9969
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
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

0 comments on commit d9a9969

Please sign in to comment.