Skip to content

Commit be8b570

Browse files
authored
Add additional ConsentType enums to sample (#950)
1 parent 89be7d9 commit be8b570

File tree

1 file changed

+6
-2
lines changed
  • analytics/testapp/Assets/Firebase/Sample/Analytics

1 file changed

+6
-2
lines changed

analytics/testapp/Assets/Firebase/Sample/Analytics/UIHandler.cs

+6-2
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,17 @@ public void AnalyticsSetConsent() {
128128
FirebaseAnalytics.SetConsent(new Dictionary<ConsentType, ConsentStatus>()
129129
{
130130
{ ConsentType.AnalyticsStorage, ConsentStatus.Denied },
131-
{ ConsentType.AdStorage, ConsentStatus.Denied }
131+
{ ConsentType.AdStorage, ConsentStatus.Denied },
132+
{ ConsentType.AdUserData, ConsentStatus.Denied },
133+
{ ConsentType.AdPersonalization, ConsentStatus.Denied }
132134
});
133135
FirebaseAnalytics.SetConsent(new Dictionary<ConsentType, ConsentStatus>());
134136
FirebaseAnalytics.SetConsent(new Dictionary<ConsentType, ConsentStatus>()
135137
{
136138
{ ConsentType.AnalyticsStorage, ConsentStatus.Granted },
137-
{ ConsentType.AdStorage, ConsentStatus.Granted }
139+
{ ConsentType.AdStorage, ConsentStatus.Granted },
140+
{ ConsentType.AdUserData, ConsentStatus.Granted },
141+
{ ConsentType.AdPersonalization, ConsentStatus.Granted }
138142
});
139143
}
140144

0 commit comments

Comments
 (0)