嗨,我目前正在我的iOS应用程序中实现Admob。代码运行良好,测试广告显示,但我有一些问题,关于GDPR和用户的同意,我也找不到答案。
使用上述表单的
谢谢!
发布于 2022-09-10 07:14:14
->,您不需要显式地通知admob。requestTrackingAuthorization方法将为您处理这个问题。但是,要为admob实现延迟应用程序测量。https://developers.google.com/admob/ump/ios/quick-start#delay_app_measurement_optional
-> UMPConsentStatus返回4个指示同意状态的值。您不需要显式地保存它们,但是可以保存它们以供应用程序使用https://developers.google.com/admob/ump/ios/quick-start#present_the_form_if_required
UMPConsentStatusUnknown: Unknown consent status.
UMPConsentStatusRequired: User consent required but not yet obtained.
UMPConsentStatusNotRequired: User consent not required. For example, the user is not in the EEA or UK.
UMPConsentStatusObtained: User consent obtained. Personalization not defined.使用上述表单的
默认情况下,初始化应用程序度量,并在应用程序启动时立即向谷歌发送用户级事件数据。这种初始化行为确保您可以启用AdMob用户度量,而无需进行额外的代码更改。
但是,如果您的应用程序在发送这些事件之前需要用户的同意,您可以延迟应用程序的测量,直到显式初始化Mobile或加载广告。
要延迟应用程序的测量,请将GADDelayAppMeasurementInit键的布尔值为YES添加到应用程序的Info.plist中。您可以以编程方式进行此更改: GADDelayAppMeasurementInit
https://developers.google.com/admob/ump/ios/quick-start#delay_app_measurement_optional
https://stackoverflow.com/questions/73667957
复制相似问题