跳转到内容

条款和隐私政策流程

在本页中,您将了解如何使用 MAX 条款和隐私政策流程来提示用户接受使用条款和隐私政策。

SDK 12.0.0 发布

配合 Google UMP 使用时,AppLovin MAX SDK 符合 TCF v2 的要求:MAX SDK 可以接收许可字符串和 AC 字符串,并按照 TCF v2 许可中的描述,将 TCF v2 许可字符串/状态转发至被聚合的平台。

If you do not use Google UMP as your CMP (either through AppLovin’s automated flow or otherwise), you must ensure that the CMP you choose supports all the mediated networks you integrate.

如果您不使用 CMP,则必须继续按照 GDPR 及其他地区的许可和其他适用标记中的描述,设置 AppLovin SDK 的二进制许可标记。

Google UMP 自动化

AppLovin MAX SDK 12.0.0 及以上版本可自动化集成 Google UMP。 因此集成 MAX SDK 之外,您无需手动集成 Google UMP。 这是一项完全可选的设置,AppLovin 会为您说明如何启用额外的 Google UMP 集成。 下面是此流程的可视化呈现:

Initialize MAX SDK. In GDPR region? Google UMP Flow. MAX Terms / Privacy Policy Flow. MAX ATT Prompt (iOS only). SDK Initialization Completion callback

  1. MAX SDK 初始化。
  2. 地区合规性检查:AppLovin 确定用户是否位于 GDPR 地区。如果用户位于 GDPR 地区,MAX SDK 就会显示 Google UMP。
  3. (仅限 iOS) 如果未配置 Google UMP 展示 ATT 弹窗,或用户未看到 Google UMP 流程,则 MAX SDK 会展示 MAX ATT 弹窗。
  4. MAX SDK 调用您的初始化完成回传,告知您可以开始加载广告了。

启用 Google UMP

在 AdMob 控制面板上启用 Google CMP

您必须先创建 Google GDPR 信息并在 AdMob 控制面板中发布该信息,才能在 MAX 许可流程中显示 Google GDPR 表单。 请按照下列步骤操作:

  1. 访问 apps.admob.com 并登入您的 AdMob 账户。
  2. 点击 Privacy & messaging
  3. 点击 GDPR
  4. 点击 Create messageGDPR message 页面打开。
  5. 选择要向哪些应用显示消息:
    1. 点击 Select apps
    2. 选择所需的应用。
    3. 点击 Save
  6. 选择消息的显示语言。
  7. User consent options 部分,选择 Consent or Manage options
  8. Targeting 部分选择 Countries subject to GDPR (EEA and UK)
  9. 点击 ContinueEdit message 页面打开。
  10. Message name 字段,输入一个描述性的消息名称,以便以后识别该消息。 该名称仅出现在 Privacy & messaging 页面,对用户不可见。
  11. 选择 Styling 选项卡。
    1. Global 部分,设置 Secondary color 为白色 (#ffffff)。
    2. Buttons 部分,设置 Secondary color 为灰色 (#6e6e6e)。
  12. 点击 Publish
自定义广告合作伙伴列表

要自定义在 GDPR 消息中显示的广告合作伙伴,请按照下列步骤操作:

  1. 打开 GDPR settings 页面。
  2. 点击 Review your ad partners 部分的编辑图标 () 。
  3. 选择 Custom ad partners 开关。然后选择已集成到应用中的所有平台。
  4. 点击 Confirm
  5. 点击 GDPR settings 页面底部的 Save

针对 Android 的说明

  1. 将 Google User Messaging Platform SDK 依赖项添加到您项目的 build.gradle 中:

    dependencies {
    implementation 'com.google.android.ump:user-messaging-platform:2.1.0'
    }
  2. 在应用的 AndroidManifest.xml 中,在 <application> 标签内添加一个 <meta-data> 标签。 以下示例展示了此标签的正确属性。 请用您的 Google 竞价和 Google AdMob / Google Ad Manager 应用 ID 替换 «your-AdMob-app-ID»

    <?xml version="1.0" encoding="utf-8"?>
    <manifest … >
    <application … >
    <meta-data
    android:name="com.google.android.gms.ads.APPLICATION_ID"
    android:value="«your-AdMob-app-ID»"/>
    </application>
    </manifest>

针对 iOS 的说明

  1. 将 Google User Messaging Platform SDK 依赖项添加到您项目的 Podfile 中:

    target '«your-project-name»' do
    pod 'Google-Mobile-Ads-SDK'
    end
  2. 在您的应用的 game.project 中创建一个名为 ios_user_tracking_usage_description 的新扩展属性。您可以通过该字符串,告知用户应用为什么要请求使用能监测用户或设备的数据。 AppLovin 建议您将该字符串的值设为:“This uses device info for more personalized ads and content”。例如,您可以按如下方式更新 game.project

    [applovin]
    ios_user_tracking_usage_description = This uses device info for more personalized ads and content
  3. 在应用的 Info.plist 中添加 GADApplicationIdentifier 键,其 String 值为 Google 竞价和 Google AdMob / Google Ad Manager 应用 ID。GADApplicationIdentifier (String): «your-AdMob-app-ID»

设置属性

To enable the MAX Terms and Privacy Policy Flow, set certain properties before you initialize the SDK. This works for both Android and iOS. The code sample below shows how to do this:

applovin.set_terms_and_privacy_policy_flow_enabled(true)
applovin.set_privacy_policy_url("«https://your-company-name.com/privacy/»")
-- Terms of Service URL is optional
applovin.set_terms_of_service_url("«https://your-company-name.com/terms/»")
applovin.initialize("«your-SDK-key»")
集成

初始化 SDK 时,SDK 会显示许可请求流程。 用户完成流程时,SDK 会调用您的初始化完成回传。

向现有用户显示 GDPR 流程

AppLovin recommends that you allow existing users in GDPR regions to reenter the GDPR flow. Typically, users do this in your app’s Settings section via an option to Manage Existing Privacy Settings. To determine if a user is in a GDPR region, find the value of the consentFlowUserGeography field on the OnSdkInitializedEvent callback params (the user is in GDPR region when consentFlowUserGeography is applovin.CONSENT_FLOW_USER_GEOGRAPHY_GDPR). This way, you can conditionally show that settings option only to users in a GDPR region.

当用户点击 Manage Exisiting Privacy Settings (或其他类似的现有隐私设置管理选项)时,调用 applovin.show_cmp_for_existing_user()。 该操作会重置用户现有的许可信息。

测试

如果您想在 GDPR 地区之外测试 Google CMP,请将调试用户地理位置设置为:

applovin.set_consent_flow_debug_user_geography("GDPR")

使用 Mediation Debugger 测试 Google UMP 集成

验证安装

在 MAX Mediation Debugger 的 Privacy 部分下,CMP (Consent Management Platform)行显示已集成的 Google 认证 CMP SDK 的名称。 如果集成了 Google UMP SDK,则会显示 “Google consent management solutions” 作为名称。

MAX Mediation Debugger. CMP (Consent Management Platform): Google consent management solutions

验证 IAB TCF 参数

If you select the CMP (Consent Management Platform) row, you can inspect the IAB TCF parameters IABTCF_gdprApplies, IABTCF_TCString, and IABTCF_AddtlConsent. For the latter two, you can click the row to copy or share its value.

IAB TCF Parameters: IABTCF_gdprApplies, IABTCF_TCString, IABTCF_AddtlConsent

验证缺失平台

CMP CONFIGURATION 部分,可以验证 Google UMP 配置中集成或缺失的平台。 下方列表包含 MAX 可用的所有平台。 您可以忽略应用中未集成的平台。

On your CMP flow you must list the networks that you integrate in your application. To check if any of those networks are missing, and to fix this problem:

  1. 完成 CMP 流程,向所有平台授予许可。
  2. 打开 Mediation Debugger 。Mediation Debugger 会解析 TC 和 AC 字符串并显示两个列表:
    1. 您在 CMP 流程中列出的已集成平台
    2. 可能需要添加的缺失平台 ( CMP CONFIGURATION 部分 Configured CMP Networks 下)
  3. 您会在MISSING ATP NETWORKSMISSING TCF VENDORS列表中看到缺失的平台。 如果您在应用中集成了这些平台中的某些平台,请按以下步骤操作:
    1. Return to your CMP’s dashboard. Add the missing networks to those covered by the GDPR message. (See Customize Ad Partners List for how to do this in Google’s Unified Consent Flow.)
    2. 重启应用。

重复这些步骤,直到确认您已将全部平台包含在 CMP 流程中。

CMP Configuration: IABTCF_CmpSdkID = 300, IABTCF_CmpSdkVersion = 2. To check which of your integrated networks are missing from your CMP, first make sure that you have granted consent to all networks through your CMP flow. Then add the following networks to your CMP network list. Configured CMP Networks: Missing 3 network(s).Configured CMP Networks: Missing TCF Vendors (TC String), Missing ATP Networks (AC String), Listed TCF Vendors (TC String)

验证聚合平台许可状态

要查看所有平台的许可状态,请展开 Mediation Debugger 的 Network Consent Statuses 部分。 Mediation Debugger 会解析 TC 字符串并显示所有平台的许可状态。 此外还会显示从 Google UMP 生成的 AC 字符串中解析出的 AppLovin 许可状态。

Network Consent Statuses: TCF Vendors (TC String), ATP Networks (AC String)