Skip to main content

GADInvalidInitializationException

XCode: All versions | Appodeal SDK: All versions


If the app crashes on startup, check the logs from your device.Connect a device with the app installed, open the iOS console, run the app and check logs. For more information about the console please visit Debugging with Xcode.

The following crash happens if AdMob APP Id has not been specified in info.plist file, which is required for AdMob and A4G networks. Appodeal SDK contains these adapters by default.

The crash log example:

*** 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'

*** First throw call stack:
(
0   CoreFoundation                      0x000000011576129b __exceptionPreprocess + 331
1   libobjc.A.dylib                     0x000000011bd5f735 objc_exception_throw + 48
2   CoreFoundation                      0x0000000115760e09 -[NSException raise] + 9
3   unityiosbuild                       0x000000010e74666b GADApplicationVerifyPublisherInitializedAnalyticsCorrectly + 414
4   unityiosbuild                       0x000000010e6f77d6 GADEnvironmentIsSupported + 1020
5   libdispatch.dylib                   0x000000011d33751d _dispatch_call_block_and_release + 12
6   libdispatch.dylib                   0x000000011d338587 _dispatch_client_callout + 8
7   libdispatch.dylib                   0x000000011d33ac60 _dispatch_queue_override_invoke + 840
8   libdispatch.dylib                   0x000000011d3474af _dispatch_root_queue_drain + 355
9   libdispatch.dylib                   0x000000011d347d19 _dispatch_worker_thread2 + 97
10  libsystem_pthread.dylib             0x000000011d72a6d5 _pthread_wqthread + 220
11  libsystem_pthread.dylib             0x000000011d72a57b start_wqthread + 15
)

Use Admob Adapter In Your App

If you are planning to use AdMob and A4G add GADApplicationIdentifier (AdMob app ID) to your info.plist.

You may find the AdMob app id in your personal account on the AdMob page:

Use the key GADApplicationIdentifier with the value being your AdMob app ID and add it to your info.plist.

<key>GADApplicationIdentifier</key> 
<string>YOUR_ADMOB_APP_ID</string>
info

For more information about Admob sync check out our guide.

Remove Admob Adapter From Your App

If you are not planning to use AdMob, A4G, and Notsy in your app, please remove or comment out the BidMachineNotsyAdapter and APDGoogleAdMobAdapter pods from your Podfile.