Is there an easy way to help users to change their Opt out of Ads Personalization
setting from within an app?
It can be opened manually from the Android Settings app by browsing to Google -> Ads:
I know lots of the Settings screen can be opened programmatically using the Settings class, e.g.
Intent intent = new Intent(Settings.ACTION_NFC_SETTINGS);
activity.startActivity(intent);
However, I can't see an option for opening the Ads
screen.
I also know that Google Play Services has some helpful utilities to let a user adjust their Location settings, e.g. LocationSettingsRequest.
Is there anything similar for the Ads
settings?
For those who are still looking for the solution. You can simply create the action string and pass that into intent.
For Example:
String action = "com.google.android.gms.settings.ADS_PRIVACY";
Intent settings = new Intent(action);
startActivity(settings);
This will open the Ads setting page.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With