Mar*_*tin 7 app-store admob swift gdprconsentform
我想在我的 iOS 应用程序中展示广告,但我不想跟踪/收集任何用户行为/数据,因此我不必处理 GDPR 同意或隐私政策问题。
到目前为止我的代码:
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
GADMobileAds.sharedInstance().start(completionHandler: nil)
GADMobileAds.sharedInstance().disableSDKCrashReporting()
GADMobileAds.sharedInstance().requestConfiguration.setSameAppKeyEnabled(false)
UserDefaults.standard.set(0, forKey: "gad_has_consent_for_cookies")
return true
}
Run Code Online (Sandbox Code Playgroud)
我错过了什么吗?
| 归档时间: |
|
| 查看次数: |
422 次 |
| 最近记录: |