Skip to content

Commit

Permalink
use paramter gdprConsent
Browse files Browse the repository at this point in the history
  • Loading branch information
Melody Li committed Oct 17, 2019
1 parent 4efef2a commit 05dbe64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/yieldmoBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const spec = {
title: localWindow.document.title || '',
w: localWindow.innerWidth,
h: localWindow.innerHeight,
user: JSON.stringify({
gdprConsent: JSON.stringify({
// case of undefined, stringify will remove param
gdprApplies: bidderRequest.gdprConsent ? bidderRequest.gdprConsent.gdprApplies : undefined,
consentString: bidderRequest.gdprConsent ? bidderRequest.gdprConsent.consentString : undefined
Expand Down
2 changes: 1 addition & 1 deletion test/spec/modules/yieldmoBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ describe('YieldmoAdapter', function () {
'gdprApplies': true
}
const data = spec.buildRequests(bidArray, bidderRequest).data;
expect(data.user).equal(JSON.stringify({
expect(data.gdprConsent).equal(JSON.stringify({
'gdprApplies': true,
'consentString': 'BOJ/P2HOJ/P2HABABMAAAAAZ+A=='
}));
Expand Down

0 comments on commit 05dbe64

Please sign in to comment.