Skip to main content

GADInvalidInitializationException

Unity: 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 the 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 integration. Appodeal SDK contains AdMob 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
)

Solutions

Use AdMob Adapter In Your App

If you are planning to use AdMob in your app - add AdMob App ID in the Unity Menu bar Appodeal → Appodeal Settings tool.

AdMob App ID is the unique ID assigned to your app.

To find the AdMob App ID in your AdMob account, go to Apps → Your Application → App Settings and copy the AdMob App ID.

info

Before using AdMob make sure to complete the steps from our AdMob integration guide and AdMob sync guide.

Remove AdMob Adapter From Your App

If you are not planning to use AdMob in your app complete the following step:

  1. Remove AdMob from the project using the Unity Menu bar Appodeal → Plugin Configuration.