Skip to content

Commit

Permalink
adding Prebid.js version to request in quantcastBidAdapter (prebid#3230)
Browse files Browse the repository at this point in the history
* adding Prebid.js version to request in quantcastBidAdapter

* using .version$ instead of pbjs.version
  • Loading branch information
jacekburys-quantcast authored and Pedro López Jiménez committed Mar 18, 2019
1 parent cee3e4d commit bad6bd3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion modules/quantcastBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ export const spec = {
},
bidId: bid.bidId,
gdprSignal: gdprConsent.gdprApplies ? 1 : 0,
gdprConsent: gdprConsent.consentString
gdprConsent: gdprConsent.consentString,
prebidJsVersion: '$prebid.version$'
};

const data = JSON.stringify(requestData);
Expand Down
3 changes: 2 additions & 1 deletion test/spec/modules/quantcastBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ describe('Quantcast adapter', function () {
domain
},
bidId: '2f7b179d443f14',
gdprSignal: 0
gdprSignal: 0,
prebidJsVersion: '$prebid.version$'
};

expect(requests[0].data).to.equal(JSON.stringify(expectedBidRequest));
Expand Down

0 comments on commit bad6bd3

Please sign in to comment.