From f18afb1e25a70ef7f9d3dd8474d8af6b397677c9 Mon Sep 17 00:00:00 2001 From: John Salis Date: Mon, 18 Jun 2018 09:03:59 -0400 Subject: [PATCH] fix gdpr consent required (#2734) --- modules/beachfrontBidAdapter.js | 8 ++++---- test/spec/modules/beachfrontBidAdapter_spec.js | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/beachfrontBidAdapter.js b/modules/beachfrontBidAdapter.js index 8f8288011e6..4f214c1b3e5 100644 --- a/modules/beachfrontBidAdapter.js +++ b/modules/beachfrontBidAdapter.js @@ -248,8 +248,8 @@ function createVideoRequestData(bid, bidderRequest) { }; if (bidderRequest && bidderRequest.gdprConsent) { - let { consentRequired, consentString } = bidderRequest.gdprConsent; - payload.regs.ext = { gdpr: consentRequired ? 1 : 0 }; + let { gdprApplies, consentString } = bidderRequest.gdprConsent; + payload.regs.ext = { gdpr: gdprApplies ? 1 : 0 }; payload.user.ext = { consent: consentString }; } @@ -283,8 +283,8 @@ function createBannerRequestData(bids, bidderRequest) { }; if (bidderRequest && bidderRequest.gdprConsent) { - let { consentRequired, consentString } = bidderRequest.gdprConsent; - payload.gdpr = consentRequired ? 1 : 0; + let { gdprApplies, consentString } = bidderRequest.gdprConsent; + payload.gdpr = gdprApplies ? 1 : 0; payload.gdprConsent = consentString; } diff --git a/test/spec/modules/beachfrontBidAdapter_spec.js b/test/spec/modules/beachfrontBidAdapter_spec.js index a3ecccba6cb..b0860547e3f 100644 --- a/test/spec/modules/beachfrontBidAdapter_spec.js +++ b/test/spec/modules/beachfrontBidAdapter_spec.js @@ -231,7 +231,7 @@ describe('BeachfrontAdapter', () => { const consentString = 'BOJ8RZsOJ8RZsABAB8AAAAAZ+A=='; const bidderRequest = { gdprConsent: { - consentRequired: true, + gdprApplies: true, consentString } }; @@ -346,7 +346,7 @@ describe('BeachfrontAdapter', () => { const consentString = 'BOJ8RZsOJ8RZsABAB8AAAAAZ+A=='; const bidderRequest = { gdprConsent: { - consentRequired: true, + gdprApplies: true, consentString } };