Skip to content

Commit

Permalink
Update consent settings mapping in GoogleAdWordsEventForwarder.js
Browse files Browse the repository at this point in the history
  • Loading branch information
alexs-mparticle committed Feb 29, 2024
1 parent 065b8ac commit 4c5290e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
8 changes: 4 additions & 4 deletions src/GoogleAdWordsEventForwarder.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,12 +288,12 @@

var googleToMpConsentSettingsMapping = {
// Inherited from S2S Integration Settings
ad_user_data: 'adUserDataConsent',
ad_personalization: 'adPersonalizationConsent',
ad_user_data: 'defaultAdUserDataConsent',
ad_personalization: 'defaultAdPersonalizationConsent',

// Unique to Web Kits
ad_storage: 'adStorageConsentWeb',
analytics_storage: 'analyticsStorageConsentWeb'
ad_storage: 'defaultAdStorageConsentWeb',
analytics_storage: 'defaultAnalyticsStorageConsentWeb'
}

Object.keys(googleToMpConsentSettingsMapping).forEach(function (googleConsentKey) {
Expand Down
32 changes: 16 additions & 16 deletions test/src/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -1233,10 +1233,10 @@ describe('Adwords forwarder', function () {
conversionId: 'AW-123123123',
enableGtag: 'True',
consentMappingWeb: JSON.stringify(consentMap),
adPersonalizationConsent: 'Granted', // Will be overriden by User Consent State
adUserDataConsent: 'Granted', // Will be overriden by User Consent State
adStorageConsentWeb: 'Granted',
analyticsStorageConsentWeb: 'Granted',
defaultAdPersonalizationConsent: 'Granted', // Will be overriden by User Consent State
defaultAdUserDataConsent: 'Granted', // Will be overriden by User Consent State
defaultAdStorageConsentWeb: 'Granted',
defaultAnalyticsStorageConsentWeb: 'Granted',
},
reportService.cb,
true
Expand Down Expand Up @@ -1267,10 +1267,10 @@ describe('Adwords forwarder', function () {
conversionId: 'AW-123123123',
enableGtag: 'True',
consentMappingWeb: JSON.stringify(consentMap),
adStorageConsentWeb: 'Unspecified', // Will be overriden by User Consent State
adUserDataConsent: 'Unspecified', // Will be overriden by User Consent State
adPersonalizationConsent: 'Unspecified',
analyticsStorageConsentWeb: 'Unspecified',
defaultAdStorageConsentWeb: 'Unspecified', // Will be overriden by User Consent State
defaultAdUserDataConsent: 'Unspecified', // Will be overriden by User Consent State
defaultAdPersonalizationConsent: 'Unspecified',
defaultAnalyticsStorageConsentWeb: 'Unspecified',
},
reportService.cb,
true
Expand Down Expand Up @@ -1456,10 +1456,10 @@ describe('Adwords forwarder', function () {
conversionId: 'AW-123123123',
enableGtag: 'True',
consentMappingWeb: JSON.stringify(consentMap),
adPersonalizationConsent: 'Granted', // Will be overriden by User Consent State
adUserDataConsent: 'Granted', // Will be overriden by User Consent State
adStorageConsentWeb: 'Granted',
analyticsStorageConsentWeb: 'Granted',
defaultAdPersonalizationConsent: 'Granted', // Will be overriden by User Consent State
defaultAdUserDataConsent: 'Granted', // Will be overriden by User Consent State
defaultAdStorageConsentWeb: 'Granted',
defaultAnalyticsStorageConsentWeb: 'Granted',
},
reportService.cb,
true
Expand Down Expand Up @@ -1747,10 +1747,10 @@ describe('Adwords forwarder', function () {
{
conversionId: 'AW-123123123',
enableGtag: 'True',
adUserDataConsent: 'Granted',
adPersonalizationConsent: 'Denied',
adStorageConsentWeb: 'Granted',
analyticsStorageConsentWeb: 'Denied',
defaultAdUserDataConsent: 'Granted',
defaultAdPersonalizationConsent: 'Denied',
defaultAdStorageConsentWeb: 'Granted',
defaultAnalyticsStorageConsentWeb: 'Denied',
},
reportService.cb,
true
Expand Down

0 comments on commit 4c5290e

Please sign in to comment.