AdMob 需要 ATrackingManager 和 UMPConsentInformation 吗?

问题描述 投票:0回答:1

我是 GoogleAdMob 的新手

我有一个类似 Google AdMob iOS 的问题,我们必须询问

ATTrackingManager.requestTrackingAuthorization
,之后,我们必须询问
UMPConsentInformation.sharedInstance.requestConsentInfoUpdate

另一个问题来自

ATTrackingManager.requestTrackingAuthorization
,如果用户未获得授权,那么我们可以要求
UMPConsentInformation.sharedInstance.requestConsentInfoUpdate
,因为用户已经允许不跟踪。

最后一个是我们可以只要求

UMPConsentInformation.sharedInstance.requestConsentInfoUpdate
UMP 同意信息吗?因为在 GoogleAdmob SDK 上没有任何
ATTrackingManager.requestTrackingAuthorization
的代码。

抱歉,有人在这方面更有经验,所以请不要降级这个问题。

ios swift admob attrackingmanager
1个回答
0
投票

我之前在各种应用程序上实现了这个解决方案,它对我有用。

UMPSDK
出于隐私目的在欧盟用户同意政策

中引入

我有一个类似 Google AdMob iOS 的问题,我们必须询问 ATrackingManager.requestTrackingAuthorization 之后,我们有 询问 UMPConsentInformation.sharedInstance.requestConsentInfoUpdate

不,我们现在不需要询问

ATTrackingManager.requestTrackingAuthorization
,因为它已经被
UMPSDK
覆盖,所以每当我们实施
UMPSDK
时,我们都需要从
GDPRMessage
帐户设置
ADMob
。 呼叫时将显示此消息。

let parameters = UMPRequestParameters()

//For testing purposes, you can force a UMPDebugGeography of EEA or not EEA.
let debugSettings = UMPDebugSettings()
// debugSettings.geography = UMPDebugGeography.EEA
parameters.debugSettings = debugSettings

// Requesting an update to consent information should be called on every app launch.
UMPConsentInformation.sharedInstance.requestConsentInfoUpdate(with: parameters) {
  requestConsentError in
  guard requestConsentError == nil else {
    return
  }

  UMPConsentForm.loadAndPresentIfRequired(from:self) { 
    loadAndPresentError in

    // Consent has been gathered.
    // Whenever consent will click ATTrackingManager popup present
  }
}

另一个问题来自 ATrackingManager.requestTrackingAuthorization(如果用户不是) 授权后我们可以要求 UMPConsentInformation.sharedInstance.requestConsentInfoUpdate 因为 用户已被允许不跟踪。

要获得此答案,您需要访问用户 ATtrackingManager 之旅

最后一个是我们可以要求 UMPConsentInformation.sharedInstance.requestConsentInfoUpdate UMP 仅同意信息?因为在 GoogleAdmob SDK 上没有任何 ATrackingManager.requestTrackingAuthorization 的代码。

有两种类型的表格适合两类不同的

EEA
not EEA
用户。
EEA
用户将看到 GDPR 对话框,其中
consent
按钮在表单中可见,当用户单击它时,将显示
ATTrackingManager
对话框。 GDPR 消息表:

not EEA
用户将看到 IDFA 对话框,其中
continue
按钮在表单中可见,当用户单击它时,将显示
ATTrackingManager
对话框。 IDFA 消息表:

如何设置 GDPR 和 UMP

https://www.youtube.com/watch?v=EwcrESnAYEI&t=2s&ab_channel=GoogleAdMob

带有 UMP 演示的 Google 广告

https://github.com/googleads/googleads-mobile-ios-examples

最新问题
© www.soinside.com 2019 - 2024. All rights reserved.