I use the UMP to obtain user consent. And then I want to show ads with Google AdMob. In the UMP documentation the part "Forward consent to the Google Mobile Ads SDK" exists. According to this I can choose if AdMob should show personalized ads or non-personalized ads:
Bundle extras = new Bundle();
extras.putString("npa", "1");
AdRequest request = new AdRequest.Builder()
.addNetworkExtrasBundle(AdMobAdapter.class, extras)
.build();
But how do I get the information if the user Accepted ("Consent") or Rejected ("Do not consent") the consent form? How do I know if I should show personalized ads or non-personalized ads? Or should I add another button in my app asking what kind of ads the user wants to see?
The only information I get with UserMessagingPlatform.getConsentInformation
is if the user already has chosen "Consent" or "Do not consent" (if the status == Obtained) but not what option he selected.