问题描述
我对 UMP SDK 的实现有很多困惑.除了谷歌之外,我没有找到太多信息或完整教程.我正在关注 this 和 这个但问题:无法理解>
I have lots of confusion regarding the implementation of the UMP SDK. I have not found much information or a complete tutorial other than google. I am following this and this but unable to understand bellow issues:
获得请求同意后是否需要调用
MobileAds.initialize()
?如果是这样,那么它应该在哪里调用?获得同意后可能会调用:
Is it required to call
MobileAds.initialize()
after getting the requesting consent? If so, then where should it be called? It might be called after obtaining the consent:
public void onConsentFormLoadSuccess(ConsentForm consentForm) {
if(consentInformation.getConsentStatus() == ConsentInformation.ConsentStatus.OBTAINED) {
}
}
我如何检查用户是否来自欧洲经济区?我想根据用户位置请求同意或初始化移动广告.在 Consent SDK 中,有一个方法 isRequestLocationInEeaOrUnknown()
,但此 SDK 已弃用.我在 UMP SDK 中没有找到类似的东西.一种方法可能是始终requestConsentInfoUpdate
并在onConsentInfoUpdateSuccess
内调用isConsentFormAvailable
.如果用户不是来自 EEA,则此方法返回 false.
How would I check if a user is not from EEA? I wanted to request consent or initialize mobile ads based on user location. In Consent SDK, there is a method isRequestLocationInEeaOrUnknown()
, but this SDK is deprecated. I have not found something similar in UMP SDK. One approach might be to always requestConsentInfoUpdate
and call isConsentFormAvailable
inside onConsentInfoUpdateSuccess
. This method returns false if the user is not from EEA.
我总是得到同意类型 consentInformation.getConsentType()
0 或 UnKnown.我尝试过不同组合,但始终为 0.
I am always getting consent type consentInformation.getConsentType()
0 or UnKnown. I have tried with different combination but always 0.
是否需要将同意信息转发给 AdMob SDK 或 SDK 会处理.
Is it required to forward consent information to AdMob SDK or SDK will handle it.
关于调解,我需要同意信息,但不知道如何获取.来自文档:UMP SDK 将同意状态信息写入本地存储
Regarding mediation, I need the consent information but do not know how to get it. From docs: The UMP SDK writes consent status information to local storage
在 AdMob 中 ->欧盟用户同意,我的中介合作伙伴之一未包含在 常用广告技术提供商集
中.如果我使用自定义广告技术提供商集
,是否需要包含所有常用广告技术提供商集
,其中有 198 个广告技术提供商.或者在 Funding Choices 中包含广告技术提供商就足够了.
In AdMob -> EU user consent, One of my mediation partners is not included in the Commonly used set of ad technology providers
. If I use Custom set of ad technology providers
, do I need to include all of Commonly used set of ad technology providers
where there are 198 ad tech providers. Or including ad tech providers in Funding Choices is enough.
推荐答案
据我体验/了解 Google Funding Choices through User Messaging Platform(实际上甚至不清楚为什么它有两个不同的名称)在欧盟.
As far as I experience / understand Google Funding Choices through User Messaging Platform (actually it is not even clear why this has two different name) is TOTALLY USELESS WITHIN THE EU.
欢迎您纠正我,但正如我在 2021 年 3 月 8 日的经验:
You are welcome to correct me, but as I experience on 8.3.2021:
如果用户点击管理选项",然后点击提交"并关闭在设备上存储和/或访问信息"开关,则 AdMob 不会向用户显示任何广告.因此,您最终可能需要为资源(云服务、员工等)付费,以向您的用户提供免费应用.根据出现问题的开始日期(我在本主题中看到的帖子和评论的日期),对于 Google 和/或 AdMob 来说,这是一个低优先级的问题.同意信息.getConsentType() 总是返回值 0.这实际上证明(或至少我认为)这个问题在他们的列表中的优先级有多低.至少可以通过这个 getter 来检查用户是否同意提供非个性化广告.然后我们可以向他展示如何正确选择退出并让他免费使用该应用程序的说明.不过,这似乎不符合开发者的利益.
If user clicks "Manage options" and then "Submit" and leaves the "Store and/or access information on a device" switch OFF then AdMob does not show any advertisement to the user. Thus, you may end up paying for resources (cloud services, employee, etc.) to provide a free app to your user.Based on the starting date of emerging the issue (the date of the posts and comments I see in this topic) it is a low priority problem to Google and/or to AdMob.consentInformation.getConsentType() always returns value 0. This actually proves (or at least I think) that how low priority this issue has on their list. It would be possible to check whether user consented to serve non-personalized ads at least through this getter. Then we could show him instructions how to properly opt-out and let him use the app for free. However, it seems that this is out of the interests of the developers.
再一次,欢迎任何人纠正我,也许只有我有过这种负面经历.
Once again, anybody is welcome to correct me, maybe only I had this negative experience.
这篇关于如何正确实施UMP SDK以获得欧盟同意?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!