跳转到内容

Terms and Privacy Policy Flow

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

SDK 12.0.0 发布

AppLovin MAX SDK, when used with Google UMP, complies with TCF v2: The MAX SDK can ingest the consent string and AC string and forward the TCF v2 Consent strings / states to the mediated networks as described in TCF v2 Consent.

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 the mediated networks you integrate.

If you do not use a CMP, you must continue to set AppLovin’s SDK’s binary consent flags as described in Consent and Other Applicable Flags in GDPR and Other Regions.

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 Instructions

Add the dependency for the Google User Messaging Platform SDK into the plugin’s AppLovinMAX_UPL_Android.xml:

<AARImports>
<insertValue value="com.google.android.ump,user-messaging-platform,2.1.0" />
<insertNewline/>
</AARImports>

iOS Instructions

Add the dependency for the Google User Messaging Platform SDK into your project’s Podfile:

target '«your-project-name»' do
pod 'Google-Mobile-Ads-SDK'
end

接下来,在应用的 Info.plist 中创建一个名为 NSUserTrackingUsageDescription,类型为 String 的新键。您可以通过该字符串,告知用户应用为什么要请求使用能监测用户或设备的数据。 AppLovin 建议您将该字符串的值设为:“This uses device info for more personalized ads and content”。例如,您可以按如下方式更新 AppLovinMAX_UPL_IOS.xml

<addElements tag="dict" once="true">
<key>NSUserTrackingUsageDescription</key>
<string>This uses device info for more personalized ads and content</string>
</addElements>

Setting Properties

For both Android and iOS, enable the MAX Terms and Privacy Policy Flow programmatically by setting properties before you initialize the SDK. The code sample below demonstrates how to do this:

UAppLovinMAX::SetTermsAndPrivacyPolicyFlowEnabled(true);
UAppLovinMAX::SetPrivacyPolicyUrl(TEXT("«https://your-company-name.com/privacy/»"));
// Terms of Service URL is optional
UAppLovinMAX::SetTermsOfServiceUrl(TEXT("«https://your-company-name.com/terms/»"));
UAppLovinMAX::Initialize(TEXT("«your-SDK-key»"));

将应用提交至 App Store Connect 进行审核时,您必须告知审核员您只为 iOS 14.5+ 启用了 App Tracking Transparency 框架权限请求。 请在 Review Notes 部分注明此信息,否则,Apple 可能会拒绝您的构建版本。

Integration

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

If you set the user ID in your MMP integration, set it where you set the AppLovin user ID.

Show GDPR Flow to Existing Users

AppLovin recommends that you allow existing users in GDPR regions to reenter the GDPR flow. Typically, users can do this in your app’s Settings section via an option to Manage Existing Privacy Settings. If you determine a user is in a GDPR region, you can conditionally show that settings option. To do this, use the SDK API SdkConfiguration.ConsentFlowUserGeography. The user is in GDPR region when ConsentFlowUserGeography is EConsentFlowUserGeography::GDPR.

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

UAppLovinMAX::OnCmpCompletedDelegate.AddLambda([this](const FSdkConfiguration& SdkConfiguration)
{
// AppLovin SDK is initialized, start loading ads
}
UAppLovinMAX::ShowCmpForExistingUser();
Testing

If you want to test the Google CMP outside the GDPR region, set the debug user geography as shown below:

UAppLovinMAX::SetConsentFlowDebugUserGeography(EConsentFlowUserGeography::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)