Skip to content

Commit

Permalink
Added dealId to response (#3762)
Browse files Browse the repository at this point in the history
  • Loading branch information
richaudience authored and mike-chowla committed Apr 19, 2019
1 parent 8016edb commit 9ffff94
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions modules/richAudienceBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ export const spec = {
netRevenue: response.netRevenue,
currency: response.currency,
ttl: response.ttl,
dealId: response.dealId,
};

if (response.media_type === 'video') {
Expand Down
8 changes: 6 additions & 2 deletions test/spec/modules/richAudienceBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ describe('Rich Audience adapter tests', function () {
creative_id: '189198063',
netRevenue: true,
currency: 'USD',
ttl: 300
ttl: 300,
dealId: 'dealId'

}
};

Expand All @@ -95,7 +97,8 @@ describe('Rich Audience adapter tests', function () {
netRevenue: true,
currency: 'USD',
ttl: 300,
vastXML: '<VAST></VAST>'
vastXML: '<VAST></VAST>',
dealId: 'dealId'
}
};

Expand Down Expand Up @@ -228,6 +231,7 @@ describe('Rich Audience adapter tests', function () {
expect(bid.netRevenue).to.equal(true);
expect(bid.currency).to.equal('USD');
expect(bid.ttl).to.equal(300);
expect(bid.dealId).to.equal('dealId');
});

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

0 comments on commit 9ffff94

Please sign in to comment.