【问题标题】:error when trying to add an interstitial Ad with ADMob尝试使用 ADMob 添加插页式广告时出错
【发布时间】:2019-09-11 07:53:45
【问题描述】:

由于未捕获的异常“GADInvalidInitializationException”而终止应用程序,原因:“Google 移动广告 SDK 初始化不正确。 Google AdMob 发布商应遵循此处的说明:https://googlemobileadssdk.page.link/admob-ios-update-plist 以包含 AppMeasurement 框架,设置 -ObjC 链接器标志,并使用有效的 App ID 设置 GADApplicationIdentifier。 Google Ad Manager 发布商应遵循此处的说明:https://googlemobileadssdk.page.link/ad-manager-ios-update-plist'

我尝试在我的 plist 中编写 GADApplicationIdentifier 但失败了。我有同样的错误。

GADApplicationIdentifier 字符串 ca-app-pub-2246624909005244~xxxxxx

这是错误的。我现在不知道。

【问题讨论】:

  • 请看how to ask
  • 谢谢。第一次在这里寻求答案..
  • @KnunLee 你明白了吗?
  • no..官方方式行不通...

标签: ios admob


【解决方案1】:

我通过声明我的应用是 Ad Manager 来实现它。我在 info.plist 中添加了以下内容:

<key>GADIsAdManagerApp</key>
<true/>

在此处阅读更多信息:Get Started Mobile Ads SDK

【讨论】:

  • 我声明我的应用程序是 ADmob。我试图在我的 info.plist 中添加 GADApplicationIdentifier ..但它不起作用..
  • 你是不是也只是在info.plist中添加了上面提到的两行?
猜你喜欢
  • 1970-01-01
  • 2016-09-03
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2013-10-23
  • 1970-01-01
相关资源
最近更新 更多