Ads SDK初始化时没有应用程序ID [英] Ads SDK was initialized without an application ID

查看:144
本文介绍了Ads SDK初始化时没有应用程序ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于未捕获的异常"GADInvalidInitializationException"而终止了应用程序,原因:未使用应用程序ID初始化Google Mobile Ads SDK.Google AdMob发布者,请按照以下说明操作: https://googlemobileadssdk.page.link/admob-ios-update-plist ,以使用有效的应用程序ID设置GADApplicationIdentifier.Google广告管理系统发布商,请按照此处的说明进行操作: https://googlemobileadssdk.page.link/ad-manager-ios-update-plist

Terminating app due to uncaught exception 'GADInvalidInitializationException', reason: 'The Google Mobile Ads SDK was initialized without an application ID. Google AdMob publishers, follow instructions here: https://googlemobileadssdk.page.link/admob-ios-update-plist to set GADApplicationIdentifier with a valid App ID. Google Ad Manager publishers, follow instructions here: https://googlemobileadssdk.page.link/ad-manager-ios-update-plist

推荐答案

您可以通过在上面链接的文档中将键值对添加到Info.plist文件来解决此问题.

you can work around it by adding the key-value pair in the documentation linked above to your Info.plist file.

打开您的info.plist文件并输入以下行:

Open your info.plist file and put that line:

键= GADIsAdManagerApp

key = GADIsAdManagerApp

value = true

value = true

这篇关于Ads SDK初始化时没有应用程序ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆