UMP 2.1 How to use showPrivacyOptionsForm

605 views
Skip to first unread message

Nordhal Mabire

unread,
Jul 27, 2023, 4:25:24 AM7/27/23
to Google Mobile Ads SDK Developers
Hello,

I recently updated the library, and noticed a new method : showPrivacyOptionsForm

I tried to test it but I always get errors, saying that the form is not loaded, or if I use the callback from loadConsentForm that the form is still loading?

Could you give us advice on how to use it effectively, and what is its purpose, if the user already saw the consent form ? 


Mobile Ads SDK Forum Advisor

unread,
Jul 27, 2023, 9:08:10 AM7/27/23
to nordhal...@mixvibes.com, google-adm...@googlegroups.com
Hello Nordhal,

Thank you for reaching out to us.

For information regarding showPrivacyOptionsForm, kindly refer to this document: https://developers.google.com/admob/android/privacy/api/reference/com/google/android/ump/UserMessagingPlatform.html#public-static-void-showprivacyoptionsform-activity-activity,-consentform.onconsentformdismissedlistener-onconsentformdismissedlistener.

For us to look into this further, would you kindly send us your sample app project where your implementing this? This is so we may check your implementation as well.

If the file(s) you are looking to share are less than 25mb in total you can attach them to this case on your next reply. If you are having trouble attaching your file to this case or if your file(s) are larger than 25mb, you can share your files with me by performing the following steps:

1. Navigate to

https://docs.google.com/forms/d/e/1FAIpQLSfkAiXMeYP-fw1W3Z-tT9uwmATEKO5X6S-th0gR2ezdKaaqfg/viewform?usp=pp_url&entry.400550049=Mobile+Ads+SDK&entry.460850823=5004Q00002mwK6vQAE&entry.80707362=00190223

2. Fill out all fields, and attach your file(s).

3. Please reply back on this thread when you have uploaded your file(s). Please do not share this link. 

This message is in relation to case "ref:_00D1U1174p._5004Q2mwK6v:ref"

Thanks,
 
Google Logo Mobile Ads SDK Team


Robot Android

unread,
Jul 27, 2023, 9:52:46 AM7/27/23
to Google Mobile Ads SDK Developers
        if (item.getItemId() == R.id.action_Eu) {
            UserMessagingPlatform.showPrivacyOptionsForm(
                    this,
                    loadAndShowError -> {
                        if (loadAndShowError != null) sterror("EU user only!");
                    }
            );
        }

четверг, 27 июля 2023 г. в 20:08:10 UTC+7, Mobile Ads SDK Forum Advisor:

Mobile Ads SDK Forum Advisor

unread,
Jul 27, 2023, 3:25:08 PM7/27/23
to dejan...@gmail.com, google-adm...@googlegroups.com

Hi Robot Android,

Thank you for reaching out to us.

Can you provide us more information with regard to the code snippet you've provided? Can you confirm if this is related to the previous user concern?

Reply all
Reply to author
Forward
0 new messages