Unity UMP SDK

757 views
Skip to first unread message

Eneko Egiluz

unread,
Nov 23, 2023, 7:39:40 AM11/23/23
to Google Mobile Ads SDK Developers
Hello, Ive implemented the Google Mobile Ads UMP following offical documentation. Consent form is being shown only in EEC and UK as expected, but is there any way to know if this happened or not withing the app? We must give to the users a chance to load this form whenever they want to modify their consent, but the documentation only says how to show it at startup to the users in GDPR countries with no callbacks to know if the form has been shown or not. If I could know this I may enable a button to modify the form ONLY to users in EEC & UK.

Mobile Ads SDK Forum Advisor

unread,
Nov 23, 2023, 7:58:02 AM11/23/23
to en...@tellmewow.com, google-adm...@googlegroups.com

Hi Eneko,

Thank you for contacting the Mobile Ads SDK Support team.

I will check with our team regarding your query and one of my team members will reach out to you once we have an update on this. Meanwhile, your patience is highly appreciated.
 

This message is in relation to case "ref:!00D1U01174p.!5004Q02qUfcM:ref"

Thanks,
 
Google Logo Mobile Ads SDK Team


Eneko Egiluz

unread,
Nov 24, 2023, 2:36:37 AM11/24/23
to Google Mobile Ads SDK Developers
Hello,
The consent form request process in the latest version is shorter thanks to the 'ConsentForm.LoadAndShowConsentFormIfRequired' method. However, there is no way to know whether the user is in the GDPR region or not. The example from the previous version had a longer process; after completing 'ConsentInformation.Update,' 'ConsentInformation.IsConsentFormAvailable()' was called. My question is whether this latter method determines that the user is in the EEC or UK in case it returns true. If so, I would only display the button to modify consents in sessions where 'ConsentInformation.IsConsentFormAvailable()' is true. 
Is this conclusion correct? IsConsentFormAvailable() returns true when the user is in EEC or UK and false when is in the rest of the world?

Thank you.

Eneko Egiluz

unread,
Nov 24, 2023, 5:31:02 AM11/24/23
to Google Mobile Ads SDK Developers
Hello again,
I think I got an answer for this, but I'd like to confirm by your side:
After LoadAndShowConsentFormIfRequired is completed ConsentInformation.ConsentStatus has a value (Unknown, NotRequired, Required or Obtained). When the consent form is shown and user answered it, the value is Obtained. But when the form didn't show up, the value is NotRequired. So, can I trust this value to know if I must enable a button to modify current consent by the user? Basically enabling it only if ConsentStatus is Requierd or Obtained.

Mobile Ads SDK Forum Advisor

unread,
Nov 28, 2023, 12:07:35 AM11/28/23
to en...@tellmewow.com, google-adm...@googlegroups.com
@Eneko

You should be using the PrivacyOptionsRequirementStatus API to determine if you need to enable a button to modify current consent by the user. See the Privacy options section in our UMP SDK guide for more information / code example. 

Thanks,
Justin

ref:!00D1U01174p.!5004Q02qUfcM:ref

Eneko Egiluz

unread,
Nov 28, 2023, 2:43:36 AM11/28/23
to Google Mobile Ads SDK Developers
Hello,
So after Updating consent information with ConsentInformation.Update(...), ConsentInformation.PrivacyOptionsRequirementStatus can tell us if showing the consent form is required or not. This is useful thnk you!

Eneko Egiluz

unread,
Nov 29, 2023, 1:53:08 AM11/29/23
to Google Mobile Ads SDK Developers
And is this enough to accomplish with GDPR? Google CMP will place in the device the needed data, and Google mobile ads will read this to serve ads according to it? Have I any way to read this information provided by the user through the consent form? Some networks requiere actively to enable or disable if the user gave this consent, but I cannot know if the consent is given if I cannot read that information.
Message has been deleted

Mobile Ads SDK Forum Advisor

unread,
Nov 29, 2023, 11:24:40 AM11/29/23
to danielj...@gmail.com, google-adm...@googlegroups.com
Hi Eneko,

Correct that the Google Mobile Ads SDK will read the TC string when determining appropriate ads to serve. See our documentation for How to read consent choices for help in how to accomplish your use case. 

Eneko Egiluz

unread,
Nov 30, 2023, 11:05:45 AM11/30/23
to Google Mobile Ads SDK Developers
The link to "How to read consent choices" only works for Android and iOS, the Unity section of this doesn't have this explained. Any workaround to use this also in Unity?
And other question. I integrated CMP system in an app for children (COPPA), and after updating consent info (ConsentInformation.Update()), ConsentInformation.PrivacyOptionsRequirementStatus value is "NOT REQUIERED". Does this mean that there is no need to implement this for COPPA apps? or  ConsentInformation.Update() method does something requiered even if the form is not going to show to the user?

Mobile Ads SDK Forum Advisor

unread,
Nov 30, 2023, 2:16:08 PM11/30/23
to en...@tellmewow.com, google-adm...@googlegroups.com
Hi Eneko,

There is no Unity API that you can use to accomplish this use case; to accomplish this you will have to write code in the iOS/Android layer. 

If you properly set the tagForUnderAgeOfConsent, the form will not appear because your users are under the legal age of consent. This is working as intended. That said, even though no form will show it is still a requirement to implement a Google-certified consent management platform. 

Eneko Egiluz

unread,
Dec 5, 2023, 5:54:57 PM12/5/23
to Google Mobile Ads SDK Developers
Ok, I managed to retrieve all local data stored by the CMP. Now, how can I know, among all this data, if I have the user consent according to GDPR? I need a boolean value to send it to different networks mediated by Admob.
Fyber.SetGDPRConsent(true/false);
AppLovin.SetHasUserConsent(true/false);
All mediated networks have a method like this. I need to know how decrypt all info I have from the users to simplify it to a boolean...

Romain Bitard

unread,
Dec 6, 2023, 4:05:27 AM12/6/23
to Google Mobile Ads SDK Developers
That seems like a pain to implement/manage, jeesus. Is there a documentation somewhere ?

Mobile Ads SDK Forum Advisor

unread,
Dec 7, 2023, 9:31:22 AM12/7/23
to bitard...@gmail.com, google-adm...@googlegroups.com
Hi Eneko,

See Ad serving modes to determine what consent is needed for each scenario. The How to read consent choices section also provides a code example to create a boolean from the purposes consent string. You should also reach out to your ad network to verify what criteria is considered enough to set the value to `true`.
Reply all
Reply to author
Forward
0 new messages