在本页中,您将了解如何使用 MAX 条款和隐私政策流程来提示用户接受使用条款和隐私政策。
您可以选择是否使用 MAX SDK 中的 CMP 流程。 如果您集成了自己的 CMP 流程,请确保在初始化 MAX SDK 之前完成该流程。
由于 iOS 17.4 中的 bug,App Tracking Transparency (ATT) 弹窗可能会过早地指示用户拒绝了 ATT。 这会导致 AppLovin SDK 通过配置了 LAT 的广告平台初始化广告单元,即使用户随后授予 ATT 许可。 如果您正在使用 AppLovin 的 Unifed Consent Flow,请更新至最新版本的 iOS SDK (12.3.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.
要通过 MAX 对接 Google 广告需求,请务必在开始集成前查看 Google CMP 要求。
AppLovin MAX SDK 12.0.0 及以上版本可自动化集成 Google UMP。 因此集成 MAX SDK 之外,您无需手动集成 Google UMP。 这是一项完全可选的设置,AppLovin 会为您说明如何启用额外的 Google UMP 集成。 下面是此流程的可视化呈现:
在下列任一情况下,TCF 许可状态可能为 false:
您必须先创建 Google GDPR 信息并在 AdMob 控制面板中发布该信息,才能在 MAX 许可流程中显示 Google GDPR 表单。 请按照下列步骤操作:
请勿勾选 Close (do not consent) 选项。
#ffffff)。#6e6e6e)。在默认的 GDPR 信息中,Google 可能不会显示您的所有广告平台合作伙伴。 如果未能纳入这些平台,您的广告收入可能会受到负面影响。 请按照本节中的步骤操作,确保 GDPR 消息中显示所有广告合作伙伴。
要自定义在 GDPR 消息中显示的广告合作伙伴,请按照下列步骤操作:
对于 Mintegral,从广告合作伙伴列表中选择 Mobvista/Mintegral,而非 Mintegral。
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>
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>
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 可能会拒绝您的构建版本。
初始化 SDK 时,SDK 会显示许可请求流程。 用户完成流程时,SDK 会调用您的初始化完成回传。
在初始化第三方 SDK (例如 MMP 或数据分析 SDK) 之前,您必须等待用户完成许可请求流程。 因此,请在初始化-完成回传中初始化此类 SDK。 如果您在用户完成许可流程之前初始化第三方 SDK,这些 SDK 将无法访问相关标识符。 之后的监测、报告和广告收入都会受到实质影响。
请不要在初始化回传中初始化通过 MAX 聚合的其他广告平台 SDK。 MAX 会自动进行这些平台 SDK 的初始化。
If you set the user ID in your MMP integration, set it where you set the AppLovin user ID.
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();
If you want to test the Google CMP outside the GDPR region, set the debug user geography as shown below:
UAppLovinMAX::SetConsentFlowDebugUserGeography(EConsentFlowUserGeography::GDPR);该流程仅向新用户显示。 如果您完成 CMP 弹窗选择后想要测试该流程,则必须删除并重新安装应用。
在 MAX Mediation Debugger 的 Privacy 部分下,**CMP (Consent Management Platform)**行显示已集成的 Google 认证 CMP SDK 的名称。 如果集成了 Google UMP SDK,则会显示 “Google consent management solutions” 作为名称。

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.

在 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:
重复这些步骤,直到确认您已将全部平台包含在 CMP 流程中。
要查看所有平台的许可状态,请展开 Mediation Debugger 的 Network Consent Statuses 部分。 Mediation Debugger 会解析 TC 字符串并显示所有平台的许可状态。 此外还会显示从 Google UMP 生成的 AC 字符串中解析出的 AppLovin 许可状态。
