Skip to content

Commit

Permalink
wrapperType and wrapperVersion parameters for TrustX Bid Adapter (#3751)
Browse files Browse the repository at this point in the history
* Added wrapperType and wrapperVersion parameters in ad request for TrustX Bid Adapter
  • Loading branch information
PWyrembak authored and mike-chowla committed Apr 20, 2019
1 parent 95e9cdf commit b481489
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/trustxBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ export const spec = {
pt: priceType,
auids: auids.join(','),
sizes: utils.getKeys(sizeMap).join(','),
r: reqId
r: reqId,
wrapperType: 'Prebid_js',
wrapperVersion: '$prebid.version$'
};

if (bidderRequest) {
Expand Down
2 changes: 2 additions & 0 deletions test/spec/modules/trustxBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ describe('TrustXAdapter', function () {
expect(payload).to.have.property('auids', '43');
expect(payload).to.have.property('sizes', '300x250,300x600');
expect(payload).to.have.property('r', '22edbae2733bf6');
expect(payload).to.have.property('wrapperType', 'Prebid_js');
expect(payload).to.have.property('wrapperVersion', '$prebid.version$');
});

it('sizes must not be duplicated', function () {
Expand Down

0 comments on commit b481489

Please sign in to comment.