diff --git a/modules/glimpseBidAdapter.js b/modules/glimpseBidAdapter.js index ea846c1a7b6..7bcf8cf3a7d 100644 --- a/modules/glimpseBidAdapter.js +++ b/modules/glimpseBidAdapter.js @@ -138,11 +138,16 @@ function getReferer(bidderRequest) { function getGdprConsentChoice(bidderRequest) { const hasGdprConsent = hasValue(bidderRequest) && - hasValue(bidderRequest.gdprConsent) && - hasStringValue(bidderRequest.gdprConsent.consentString) + hasValue(bidderRequest.gdprConsent) if (hasGdprConsent) { - return bidderRequest.gdprConsent + const gdprConsent = bidderRequest.gdprConsent + + return { + consentString: gdprConsent.consentString || '', + vendorData: gdprConsent.vendorData || {}, + gdprApplies: gdprConsent.gdprApplies || true, + } } return {