【问题标题】:Solve the issue Violation of Usage of Android Advertising ID解决Android广告ID使用违规问题
【发布时间】:2019-08-28 23:00:34
【问题描述】:

我第二次收到来自 google 的同一应用程序的这封电子邮件:

问题:违反使用 Android 广告 ID 政策和部分 4.8 开发者分发协议

Google Play 要求开发者在以下情况下提供有效的隐私权政策 应用程序请求或处理敏感的用户或设备信息。 我们发现您的应用收集并传输了 Android 广告标识符,受隐私政策约束 要求。如果您的应用收集 Android 广告 ID,您必须 在指定字段中提供有效的隐私政策 Play 管理中心,以及在应用内。

在这一点上,很明显我做错了什么。我在网上找到了很多关于这个问题的答案,我做了以下解决问题:

  1. 我打开了https://app-privacy-policy-generator.firebaseapp.com/ 并生成了一个策略:

  1. 我已将生成的政策的 HTML 上传到我的网站,并将链接放在 Google Play 开发者控制台中:

  1. 我在我的应用程序中添加了一个指向策略的链接,该链接与我在 google play 开发者控制台中放置的 URL 相同。可以通过以下方式访问该链接:

.

//Set the click event for the privacy policy
        theView.findViewById(R.id.privacy_policy).setOnClickListener(
                l -> startActivity(
                        new Intent(Intent.ACTION_VIEW, Uri.parse(PRIVACY_POLICY_URL))
                )
        );

我想知道:我还应该做什么?


即使我采取了这些行动,我的应用今天也被删除了。看看我的 gradle 文件是否有用:

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation 'com.android.support:design:28.0.0'
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    implementation 'com.android.volley:volley:1.1.1'
    implementation 'com.google.code.gson:gson:2.8.5'
    implementation 'com.android.support:preference-v7:28.0.0'
    implementation 'com.google.firebase:firebase-core:16.0.8'
    implementation 'com.google.firebase:firebase-messaging:17.5.0'
    implementation 'com.google.android.gms:play-services-ads:17.2.0'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}

apply plugin: 'com.google.gms.google-services'

我应该在策略生成器的Personally identifiable information you collect 字段中添加一些文本吗?如果空白,我已经离开了

【问题讨论】:

标签: android google-developers-console


【解决方案1】:

正如您的电子邮件所示,您的应用似乎收集了Google Analytics AdId。如果您在应用中使用 Firebase 服务,则默认启用 Google Advertising 集合。

如果您不想提供隐私权政策,解决此问题的一种简单方法是禁用广告 ID 的收集。您可以简单地将这一行添加到您的AndroidManifest.xml

<meta-data android:name="google_analytics_adid_collection_enabled" android:value="false" />

见:https://firebase.google.com/support/guides/disable-analytics#disable_advertising_id_collection

【讨论】:

  • 此添加是否也会停止使用 AdMob?我的应用中有 AdView 和 AdMob 来获利
  • 我明白了,如果你想使用 AdMob,这个解决方案是行不通的,因为它依赖于 AdId。
猜你喜欢
  • 2019-07-03
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-03-08
  • 2018-10-20
  • 2016-08-23
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多