How to request non-personalized AdMob ads with the new Unified Messaging Platform SDK for Android(如何使用新的 Android 统一消息平台 SDK 请求非个性化 AdMob 广告)
问题描述
I am currently using Google's (deprecated) consent-library to request consent for personalized ads from European users. The documentation specifies that if a user's consent status is already set to PERSONALIZED or NON_PERSONALIZED, you can forward consent to the Google Mobile Ads SDK with:
Bundle extras = new Bundle();
extras.putString("npa", "1");
AdRequest request = new AdRequest.Builder()
.addNetworkExtrasBundle(AdMobAdapter.class, extras)
.build();
Now I want to migrate to the new Unified Messaging Platform SDK for Android. The documentation is pretty straightforward, but it only explains how to get consent, not how to use the consent. Does this mean that when using the new UMP SDK for Android, we no longer have to set the "npa"
is "1"
when requesting an AdMob ad for a user that did not consent to personalized ads?
EDIT 25 Aug 2020
Yesterday I found this conversation where somebody from the Mobile Ads SDK team responded to the same question I asked here. He says that:
The legacy "Passing of consent" through npa=1 will be honored by our SDK until further notice.
EDIT 31 Aug 2020
I started a new conversation where I ask the same question as the one in this post, but I am not getting any response.
With the new Unified Messaging Platform, Google is working as a Consent Managing Platform. These CMP's use a TCF string to store the user consent preferences. Google checks this TCF string to see which ads can be shown;
As per the Google documentation:
Google will serve personalized ads when all of the following criteria are met:
- The end user grants Google consent to Store and/or access information on a device
- Create a personalized ads profile
- Select personalized ads
And legitimate interest (or consent, where a publisher configures their CMP to request it) is established for Google to:
- Select basic ads
- Measure ad performance
- Apply market research to generate audience insights
- Develop and improve products
If the consent requirements for personalized ads are not met, Google will serve non-personalized ads when all of the following criteria are met:
- Store and/or access information on a device
Legitimate interest (or consent, where a publisher configures their CMP to request it) is established for Google to:
- Select basic ads
Measure ad performanceApply market research to generate audience insightsDevelop and improve products- Enable Google in the vendor list.
Update 20 October: Apparently 3,4,5 are not needed anymore to show non-personal ads SO @Georg for providing this information.
If none of the conditions above are met Google won't be showing ads..
I hope this answers your question but if you need more information please let me know!
这篇关于如何使用新的 Android 统一消息平台 SDK 请求非个性化 AdMob 广告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何使用新的 Android 统一消息平台 SDK 请求非个性化 AdMob 广告


基础教程推荐
- UIWebView 委托方法 shouldStartLoadWithRequest:在 WKWebView 中等效? 2022-01-01
- 如何在 UIImageView 中异步加载图像? 2022-01-01
- 如何在没有IB的情况下将2个按钮添加到右侧的UINavigationbar? 2022-01-01
- 当从同一个组件调用时,两个 IBAction 触发的顺序是什么? 2022-01-01
- Android:对话框关闭而不调用关闭 2022-01-01
- android 应用程序已发布,但在 google play 中找不到 2022-01-01
- Kivy Buildozer 无法构建 apk,命令失败:./distribute.sh -m “kivy"d 2022-01-01
- 如何让对象对 Cocos2D 中的触摸做出反应? 2022-01-01
- 如何在 iPhone 上显示来自 API 的 HTML 文本? 2022-01-01
- 在 gmail 中为 ios 应用程序检索朋友的朋友 2022-01-01