Data Privacy
The MobileFuse SDK supports privacy configurations that can be managed using an IAB compatible GPP Consent String and US Privacy Strings. You can also tell the SDK whether your user is subject to COPPA, due to them being under 13 years of age.
The following snippet demonstrates configuration of a GPP String:
MobileFusePrivacyPreferences privacyPrefs = new MobileFusePrivacyPreferences.Builder()
.setGppConsentString("DBACNYA~CPXxRfAPXxRfAAfKABENB-CgAAAAAAAAAAYgAAAAAAAA~1YNN")
.build();
MobileFuse.setPrivacyPreferences(privacyPrefs);
val privacyPrefs = MobileFusePrivacyPreferences.Builder()
.setGppConsentString("DBACNYA~CPXxRfAPXxRfAAfKABENB-CgAAAAAAAAAAYgAAAAAAAA~1YNN")
.build()
MobileFuse.setPrivacyPreferences(privacyPrefs)
The following snippet demonstrates configuration for the US privacy and COPPA compliance:
MobileFusePrivacyPreferences privacyPrefs = new MobileFusePrivacyPreferences.Builder()
.setSubjectToCoppa(false) // should be true if user is under 13 years of age
.setUsPrivacyConsentString("<US Privacy String>") // e.g. 1YNN
.build();
MobileFuse.setPrivacyPreferences(privacyPrefs);
val privacyPrefs = MobileFusePrivacyPreferences.Builder()
.setDoNotTrack(true) // With "do not track" set, the user is opted out!
.build()
MobileFuse.setPrivacyPreferences(privacyPrefs)
The following snippet demonstrates setting the "do not track" option as an alternative to providing specific privacy strings:
MobileFusePrivacyPreferences privacyPrefs = new MobileFusePrivacyPreferences.Builder()
.setDoNotTrack(true) // With "do not track" set, the user is opted out!
.build();
MobileFuse.setPrivacyPreferences(privacyPrefs);
val privacyPrefs = MobileFusePrivacyPreferences.Builder()
.setDoNotTrack(true) // With "do not track" set, the user is opted out!
.build()
MobileFuse.setPrivacyPreferences(privacyPrefs)
Note
To ensure that you get reliable ad fill and the best CPMs, please ensure that you implement the data privacy methods that are relevant to your user.
Updated about 1 year ago