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

RichAudience Bid Adapter: add support to adomain #12465

Merged
merged 16 commits into from
Nov 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion modules/richaudienceBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ export const spec = {
netRevenue: response.netRevenue,
currency: response.currency,
ttl: response.ttl,
meta: response.adomain,
meta: {
advertiserDomains: [response.adomain[0]]
},
dealId: response.dealId
};

Expand Down
8 changes: 4 additions & 4 deletions test/spec/modules/richaudienceBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ describe('Richaudience adapter tests', function () {
currency: 'USD',
ttl: 300,
dealId: 'dealId',
adomain: 'richaudience.com'
adomain: ['richaudience.com']
}
};

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

Expand Down Expand Up @@ -710,7 +710,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');
expect(bid.meta.advertiserDomains[0]).to.equal('richaudience.com');
});

it('no banner media response inestream', function () {
Expand Down Expand Up @@ -739,7 +739,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');
expect(bid.meta.advertiserDomains[0]).to.equal('richaudience.com');
});

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