LoginSignup
4
1

More than 1 year has passed since last update.

[Admob] 起動時にアプリがクラッシュする

Last updated at Posted at 2021-05-24

(この記事は、私が自己解決したTeratailの質問を要約したものになります。)

Admobでバナー広告を実装していたところ、クラッシュしたのでそのことについて書こうと思います。


開発環境

Xcode 12.4
Google Mobile Ads SDK 7.69.0
Firebase 7.5.0

エラー内容

Thread 2: "The Google Mobile Ads SDK was initialized without AppMeasurement. Google AdMob publishers, follow instructions here: https://googlemobileadssdk.page.link/admob-ios-update-plist to include the AppMeasurement framework and set the -ObjC linker flag. Google Ad Manager publishers, follow instructions here: https://googlemobileadssdk.page.link/ad-manager-ios-update-plist"

心当たりがあったこと

・App Tracking Transparencyで許可をリクエストの実装をしていない。

・Admob管理画面でアプリの追加、広告ユニットIDの作成、を行ったのが24時間以内。(アカウントは半年前に作成済み)

・Firebaseにアプリをリンクさせたのも24時間以内。

原因

Info.plist内に以下のキーを追加していないのが原因でした。

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

参考:Xcode Error When Added AdMob Plugin To Ionic Project (stackoverflow)


4
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
1