From 5605bf3a81f6d78dccb68ce6d9718d9c1daf2c6f Mon Sep 17 00:00:00 2001 From: Alexander Sapountzis Date: Tue, 24 Sep 2024 11:49:48 -0400 Subject: [PATCH] Update default ad storage name --- src/BingAdsEventForwarder.js | 2 +- test/src/tests.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/BingAdsEventForwarder.js b/src/BingAdsEventForwarder.js index 70e730f..3c46693 100644 --- a/src/BingAdsEventForwarder.js +++ b/src/BingAdsEventForwarder.js @@ -30,7 +30,7 @@ var MessageType = { var bingConsentValues = { Denied: 'denied', Granted: 'granted' }; var bingConsentProperties = ['ad_storage']; var bingToMpConsentSettingsMapping = { - ad_storage: 'defaultAdStorageConsentSDK', + ad_storage: 'defaultAdStorageConsentWeb', }; var constructor = function() { diff --git a/test/src/tests.js b/test/src/tests.js index c76e84a..f186f96 100644 --- a/test/src/tests.js +++ b/test/src/tests.js @@ -284,7 +284,7 @@ describe('Bing Ads Event Forwarder', function() { { tagId: 'tagId', consentMapingWeb: JSON.stringify(consentMap), - defaultAdStorageConsentSDK: 'Denied', // Should be overridden by user consent state + defaultAdStorageConsentWeb: 'Denied', // Should be overridden by user consent state }, reportService.cb, false // Disable testMode so we can test init @@ -358,7 +358,7 @@ describe('Bing Ads Event Forwarder', function() { { tagId: 'tagId', consentMapingWeb: JSON.stringify(consentMap), - defaultAdStorageConsentSDK: 'Unspecified', // Should be overridden by user consent state + defaultAdStorageConsentWeb: 'Unspecified', // Should be overridden by user consent state }, reportService.cb, false // Disable testMode so we can test init @@ -460,7 +460,7 @@ describe('Bing Ads Event Forwarder', function() { { tagId: 'tagId', consentMapingWeb: JSON.stringify(consentMap), - defaultAdStorageConsentSDK: 'Denied', + defaultAdStorageConsentWeb: 'Denied', }, reportService.cb, false // Disable testMode so we can test init @@ -679,7 +679,7 @@ describe('Bing Ads Event Forwarder', function() { mParticle.forwarder.init( { tagId: 'tagId', - defaultAdStorageConsentSDK: 'Denied', + defaultAdStorageConsentWeb: 'Denied', }, reportService.cb, false // Disable testMode so we can test init