Skip to content

Commit

Permalink
Update for 'Adapters that may not handle GDPR-Applies correctly prebi…
Browse files Browse the repository at this point in the history
…d#7775' (prebid#7788)

Co-authored-by: sgimenez <sergi.gimenez@richaudience.com>
  • Loading branch information
2 people authored and Chris Pabst committed Jan 10, 2022
1 parent 585e504 commit 3d9a7b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions modules/richaudienceBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,10 @@ export const spec = {
REFERER = (typeof bidderRequest.refererInfo.referer != 'undefined' ? encodeURIComponent(bidderRequest.refererInfo.referer) : null)

payload.gdpr_consent = '';
payload.gdpr = null;
payload.gdpr = bidderRequest.gdprConsent.gdprApplies;

if (bidderRequest && bidderRequest.gdprConsent) {
payload.gdpr_consent = bidderRequest.gdprConsent.consentString;
payload.gdpr = bidderRequest.gdprConsent.gdprApplies;
}

var payloadString = JSON.stringify(payload);
Expand Down
4 changes: 2 additions & 2 deletions test/spec/modules/richaudienceBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,7 @@ describe('Richaudience adapter tests', function () {
}, [], {
consentString: null,
referer: 'http://domain.com',
gdprApplies: true
gdprApplies: false
})
expect(syncs).to.have.lengthOf(1);
expect(syncs[0].type).to.equal('image');
Expand Down Expand Up @@ -942,7 +942,7 @@ describe('Richaudience adapter tests', function () {
}, [], {
consentString: null,
referer: 'http://domain.com',
gdprApplies: true
gdprApplies: false
})
expect(syncs).to.have.lengthOf(0);
});
Expand Down

0 comments on commit 3d9a7b1

Please sign in to comment.