Skip to content

Commit

Permalink
Richaudience Bid Adapter: add adomain support (prebid#6880)
Browse files Browse the repository at this point in the history
* RichaudienceBidAdapter Add adomine for Prebid 5.0

* new pull

* new pull 2

* New Pull 3

* Add unit test

* New push 1

* New push 2

Co-authored-by: sgimenez <sergi.gimenez@richaudience.com>
  • Loading branch information
2 people authored and agrandes-tappx committed Sep 29, 2021
1 parent f54adfa commit 417b36f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion modules/richaudienceBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ export const spec = {
netRevenue: response.netRevenue,
currency: response.currency,
ttl: response.ttl,
dealId: response.dealId,
meta: response.adomain,
dealId: response.dealId
};

if (response.media_type === 'video') {
Expand Down
9 changes: 6 additions & 3 deletions test/spec/modules/richaudienceBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ describe('Richaudience adapter tests', function () {
netRevenue: true,
currency: 'USD',
ttl: 300,
dealId: 'dealId'

dealId: 'dealId',
adomain: 'richaudience.com'
}
};

Expand All @@ -165,7 +165,8 @@ describe('Richaudience adapter tests', function () {
currency: 'USD',
ttl: 300,
vastXML: '<VAST></VAST>',
dealId: 'dealId'
dealId: 'dealId',
adomain: 'richaudience.com'
}
};

Expand Down Expand Up @@ -600,6 +601,7 @@ describe('Richaudience adapter tests', function () {
expect(bid.currency).to.equal('USD');
expect(bid.ttl).to.equal(300);
expect(bid.dealId).to.equal('dealId');
expect(bid.meta).to.equal('richaudience.com');
});

it('no banner media response inestream', function () {
Expand Down Expand Up @@ -628,6 +630,7 @@ describe('Richaudience adapter tests', function () {
expect(bid.currency).to.equal('USD');
expect(bid.ttl).to.equal(300);
expect(bid.dealId).to.equal('dealId');
expect(bid.meta).to.equal('richaudience.com');
});

it('no banner media response outstream', function () {
Expand Down

0 comments on commit 417b36f

Please sign in to comment.