Skip to content

Releases: binouze/GoogleUserMessagingPlatform

1.1.8

Choose a tag to compare

@binouze binouze released this 08 Dec 09:08
  • Updated UMP dependencies -> 4.0.0.
  • Added debugGeography to SetDebugMode method.
  • Migrated GDPR Swift implementation to Objective-C, to prevent issue when using Unity IAP 5.x. Thanks to @coolishbee.

1.1.4

Choose a tag to compare

@binouze binouze released this 08 May 16:35

Removed deleting of outdated data as it's seems that the timestamp format has changed somehow and Google now takes care of outdated and invalid TCF strings.

1.1.3

Choose a tag to compare

@binouze binouze released this 23 Apr 13:47

Handle no response scenario when there is an error. Thanks @amirhakimnejad.

1.1.2

Choose a tag to compare

@binouze binouze released this 16 Apr 09:27
  • Added method GetCanRequestAds if needed for GoogleAds implementation.
  • Added methods to help manage FirebaseAnalytics consent.

I implemented the methods GoogleUserMessagingPlatform .GetFirebaseAdStorage(), GoogleUserMessagingPlatform .GetFirebaseAdPersonalization() and GoogleUserMessagingPlatform .GetFirebaseAdUserData() from my understanding of the not very detailed documentation from Google https://developers.google.com/tag-platform/security/guides/implement-TCF-strings and some testings.

If interested here is an exemple of how to use it:

var FirebaseConsent = new Dictionary<ConsentType, ConsentStatus>();
if( GoogleUserMessagingPlatform.IsGDPRRequired() )
{
    var vendorAutorized = GoogleUserMessagingPlatform.GetConsentForVendor( VendorsIds.Google );
    if( vendorAutorized )
    {
        // GoogleVendor consent OK
        
        var adStorage  = GoogleUserMessagingPlatform.GetFirebaseAdStorage();
        var adPerso    = GoogleUserMessagingPlatform.GetFirebaseAdPersonalization();
        var adUserData = GoogleUserMessagingPlatform.GetFirebaseAdUserData();
        
        Debug.Log( $"Maj Firebase consent: adStorage:{adStorage} adPerso:{adPerso} adUserData:{adUserData}" );
    
        FirebaseConsent.Add( ConsentType.AnalyticsStorage,  adStorage  ? ConsentStatus.Granted : ConsentStatus.Denied );
        FirebaseConsent.Add( ConsentType.AdPersonalization, adPerso    ? ConsentStatus.Granted : ConsentStatus.Denied );
        FirebaseConsent.Add( ConsentType.AdStorage,         adStorage  ? ConsentStatus.Granted : ConsentStatus.Denied );
        FirebaseConsent.Add( ConsentType.AdUserData,        adUserData ? ConsentStatus.Granted : ConsentStatus.Denied );
    
        // or maybe true as vendor is consented
        FirebaseAnalytics.SetAnalyticsCollectionEnabled(adStorage || adPerso || adUserData); 
    }
    else
    {
        // GoogleVendor NOT CONSENTED

        Debug.Log( "Google vendor not consented" );
        
        FirebaseConsent.Add( ConsentType.AnalyticsStorage,  ConsentStatus.Denied );
        FirebaseConsent.Add( ConsentType.AdPersonalization, ConsentStatus.Denied );
        FirebaseConsent.Add( ConsentType.AdStorage,         ConsentStatus.Denied );
        FirebaseConsent.Add( ConsentType.AdUserData,        ConsentStatus.Denied );
    
        FirebaseAnalytics.SetAnalyticsCollectionEnabled(false); 
    }
}
else
{
    // GDPR NOT APPLICABLE
    
    FirebaseConsent.Add( ConsentType.AnalyticsStorage,  ConsentStatus.Granted );
    FirebaseConsent.Add( ConsentType.AdPersonalization, ConsentStatus.Granted );
    FirebaseConsent.Add( ConsentType.AdStorage,         ConsentStatus.Granted );
    FirebaseConsent.Add( ConsentType.AdUserData,        ConsentStatus.Granted );
    
    FirebaseAnalytics.SetAnalyticsCollectionEnabled(true); 
}

FirebaseAnalytics.SetConsent(FirebaseConsent); 

1.1.1

Choose a tag to compare

@binouze binouze released this 08 Apr 13:56

Fixed: ConsentStatus variable updated before dispatching OnInitializeComplete callback. Thanks @lsw1164

1.1.0

Choose a tag to compare

@binouze binouze released this 08 Apr 10:44
  • Added OnComplete callback on the Initialize() function, this is the only way to know that the init is complete. (waiting for a status change or a form closed will not work anymore). Thanks @lsw1164

1.0.22

Choose a tag to compare

@binouze binouze released this 11 Jan 11:18
  • bug fixes
  • added ios pods dependencies
  • updated UMP SDK to version 2.1.0
  • added function CanShowPersonalizedAds
  • added function to try to know if user accepted all (need to know vendor ids and external ids)

1.0.11

Choose a tag to compare

@binouze binouze released this 18 Nov 06:41

Added function CanShowAds to get details from the TCF string and says if user accepted minimum condition to display Ads on EU
Added function IsGDPRRequired to get details from the TCF string and says if user is in the European Union

1.0.0

Choose a tag to compare

@binouze binouze released this 14 Nov 13:26

added setter for TargetChildren Tag

0.1.0

Choose a tag to compare

@binouze binouze released this 10 Nov 11:57

First release of the package