要求采取的行动:声明您的广告 ID 权限

Action requested: Declare your Ad ID permission

今天我收到了这封邮件:

Last July, we announced Advertising policy changes to help bolster security and privacy. We added new restrictions on identifiers used by apps that target children. When users choose to delete their advertising ID in order to opt out of personalization advertising, developers will receive a string of zeros instead of the identifier if they attempt to access the identifier. This behavior will extend to phones, tablets, and Android TV starting April 1, 2022. We also announced that you need to declare an AD_ID permission when you update your app targeting API level to 31 (Android 12). Today, we are sharing that we will give developers more time to ease the transition. We will require this permission declaration when your apps are able to target Android 13 instead of starting with Android 12.

Action Items If you use an advertising ID, you must declare the AD_ID Permission when your app targets Android 13 or above. Apps that don’t declare the permission will get a string of zeros. Note: You’ll be able to target Android 13 later this year. If your app uses an SDK that has declared the Ad ID permission, it will acquire the permission declaration through manifest merge. If your app’s target audience includes children, you must not transmit Android Advertising ID (AAID) from children or users of unknown age.

我的应用没有使用广告 ID。我是否应该在清单中声明 AD_ID 权限?

Google 在这里描述如何解决

https://support.google.com/googleplay/android-developer/answer/6048248?hl=en

在清单中添加

<uses-permission android:name="com.google.android.gms.permission.AD_ID"/>

如果您的应用使用 Google 移动广告 SDK(Admob) 版本 20.4.0 或更高版本,您可以跳过手动设置权限,因为 SDK 会自动声明它

更多信息在这里:

https://developers.google.com/admob/android/quick-start

别担心。所有使用 Admob 做广告的开发者都会收到这个警告。只需确保您使用的是 最新 Google 移动广告 SDK(Admob) 或 AdMob SDK 版本 更高或等于 20.4.0你的 build.gradle 文件。在那种情况下 SDK 会自动管理它

否则对于低于 20.4.0 的旧版 SDK,我们需要在 AndroidManifest.xml

中手动提及以下行
<uses-permission android:name="com.google.android.gms.permission.AD_ID"/>

我今天还收到了 PlayStore 团队发给所有开发者的邮件。要求声明 AD_ID 权限。 由于我们使用 Flutter 和 android 开发并发布了我们的应用程序,目标是 API 级别 31。我正在使用 advertising_identifier: ^0.1.1 插件来获取广告客户 ID。我没有在清单文件中声明 AD_ID 权限。

此外,应用将其目标 API 级别更新为 31 (Android 12) 并使用广告标识符/广告 ID 客户端信息获取将需要声明 Google Play 服务正常清单文件中的权限如下:

<uses-permission android:name="com.google.android.gms.permission.AD_ID"/>

引用,

https://support.google.com/googleplay/android-developer/answer/6048248?hl=en