【问题标题】:Problem in updating Google-Mobile-Ads-SDK for iOS更新适用于 iOS 的 Google-Mobile-Ads-SDK 时出现问题
【发布时间】:2020-08-21 08:46:28
【问题描述】:

我想更新 Google-Mobile-Ads-SDK pod 以删除 UIWebView 的实例,但根据文档 link,需要将 GADApplicationIdentifier 添加到 Info.plist文件以正确初始化 SDK。我没有 admob 帐户,我只使用 Ad-Manager 在应用中展示原生广告。有没有其他方法来更新SDK而不在Info.plist中添加GADApplicationIdentifier

【问题讨论】:

  • 您有用于在 AppDelegate 中初始化 SDK 的密钥吗?如果你这样做,只需将其移至 info.plist。
  • @Glenn 我没有任何密钥,根据文档甚至不需要它。我只有两个不同的广告单元 ID 用于 DFP 请求

标签: ios admob google-ad-manager googlemobileads


【解决方案1】:

得到了解决方案: 如果您没有 AdMob 帐户并且使用 AdManager 展示广告,则可以在 Info.plist 中添加以下密钥 GADIsAdManagerAppYES,以使用最新版本正确初始化 Ads SDK

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-11-14
    • 2015-11-11
    • 2016-04-10
    • 1970-01-01
    • 2011-12-28
    • 2020-10-01
    相关资源
    最近更新 更多