From e91efffb807c0c1d736cb9ce72faff587b5fef1d Mon Sep 17 00:00:00 2001 From: Tim Martin Date: Wed, 12 Aug 2020 16:46:17 -0700 Subject: [PATCH] ADS-4217 gdpr data in one level down --- modules/mavenAnalyticsAdapter.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/modules/mavenAnalyticsAdapter.js b/modules/mavenAnalyticsAdapter.js index 0431ed66a30..749f53f1bc9 100644 --- a/modules/mavenAnalyticsAdapter.js +++ b/modules/mavenAnalyticsAdapter.js @@ -81,11 +81,14 @@ let mavenAnalytics = Object.assign(adapter({hummingbirdUrl, analyticsType}), { // GDPR values are stored with at the bidRequest level // If set for any bidRequest, set for auction args.bidderRequests.forEach(request => { - if (request.hasOwnProperty('gdprApplies')) { - auctionObj.gdprApplies = request.gdprApplies; - } - if (request.hasOwnProperty('consentString')) { - auctionObj.consentString = request.consentString; + if (request.gdprConsent) { + let gc = request.gdprConsent; + if (gc.hasOwnProperty('gdprApplies')) { + auctionObj.gdprApplies = gc.gdprApplies; + } + if (gc.hasOwnProperty('consentString')) { + auctionObj.consentString = gc.consentString; + } } }); currentAuctions[id] = auctionObj;