'GADInvalidInitializationException', reason: 'The Google Mobile Ads SDK was initialized incorrectly

2,507 views
Skip to first unread message

Andrew

unread,
Mar 19, 2019, 3:23:54 AM3/19/19
to google-adm...@googlegroups.com
Hi

I am developing an app for IOS on xcode using the latest Google Mobile Ads SDK.

My app is crashing when starting with this error message:

019-03-19 17:11:31.261286+1000 Jumper Roo[2507:467295] *** Terminating app due to uncaught exception 'GADInvalidInitializationException', reason: 'The Google Mobile Ads SDK was initialized incorrectly. Google AdMob publishers should follow instructions here: https://googlemobileadssdk.page.link/admob-ios-update-plist to include the AppMeasurement framework, set the -ObjC linker flag, and set GADApplicationIdentifier with a valid App ID. Google Ad Manager publishers should follow instructions here: https://googlemobileadssdk.page.link/ad-manager-ios-update-plist'

*** First throw call stack:

(0x1df1b9ea4 0x1de389a50 0x1df0d378c 0x1009c4bf0 0x1009c580c 0x1009c5bc8 0x1009cd66c 0x1009c5b90 0x100a24570 0x1009e56b4 0x1009e4950 0x1009cd66c 0x1009e464c 0x1009e4ba4 0x100990ce0 0x100866ed8 0x10086712c 0x20bedd890 0x20beddcc0 0x20c4dc128 0x20c4dc6d0 0x20c4ed6d8 0x20c49d4b8 0x20c4a2e54 0x20bd3e93c 0x20bd475bc 0x20bd3e5b8 0x20bd3ef58 0x20bd3d058 0x20bd3cd04 0x20bd41ec4 0x20bd42e24 0x20bd41d7c 0x20bd46c68 0x20c4a134c 0x20c08c244 0x1e1bf09d4 0x1e1bfb79c 0x1e1bfae94 0x102124dc8 0x102128a10 0x1e1c2fa9c 0x1e1c2f728 0x1e1c2fd44 0x1df14a0e0 0x1df14a060 0x1df149944 0x1df144810 0x1df1440e0 0x1e13bd584 0x20c4a4c00 0x10086b498 0x1dec02bb4)

libc++abi.dylib: terminating with uncaught exception of type NSException


I have followed the instructions in the provided link at https://googlemobileadssdk.page.link/admob-ios-update-plist 


  1. I added the sdk to cocoapods
  2. I have included the app id in the Info.plist


At this point I have tried running the app with only the sdk and the info.plist updated with app id for debugging purposes and receive the same error.


I have been stuck on this for hours and now am wondering if it is nothing to do with my code at all.


Please help.


Thanks for taking the time to read this.


Andrew

mobileadssdk...@google.com

unread,
Mar 19, 2019, 3:54:54 PM3/19/19
to Andrew, Google Mobile Ads SDK Developers
Hello Andrew,

Thanks for reaching out to us. Can try again with our sample apps and then let us know? Make sure that this property is in your project's .plist file. If you are still having issues, send us your sample app and we will have a look. You can use "Reply Privately to Author" option to share the details privately.

Regards,
Deepika Uragayala
Mobile Ads SDK Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

On 03/19/19 03:23:54 andrewgo...@gmail.com wrote:
Hi

I am developing an app for IOS on xcode using the Google Mobile Ads SDK.

My app is crashing when starting with this error message:

019-03-19 17:11:31.261286+1000 Jumper Roo[2507:467295] *** Terminating app due to uncaught exception 'GADInvalidInitializationException', reason: 'The Google Mobile Ads SDK was initialized incorrectly. Google AdMob publishers should follow instructions here: https://googlemobileadssdk.page.link/admob-ios-update-plist to include the AppMeasurement framework, set the -ObjC linker flag, and set GADApplicationIdentifier with a valid App ID. Google Ad Manager publishers should follow instructions here: https://googlemobileadssdk.page.link/ad-manager-ios-update-plist'

*** First throw call stack:

(0x1df1b9ea4 0x1de389a50 0x1df0d378c 0x1009c4bf0 0x1009c580c 0x1009c5bc8 0x1009cd66c 0x1009c5b90 0x100a24570 0x1009e56b4 0x1009e4950 0x1009cd66c 0x1009e464c 0x1009e4ba4 0x100990ce0 0x100866ed8 0x10086712c 0x20bedd890 0x20beddcc0 0x20c4dc128 0x20c4dc6d0 0x20c4ed6d8 0x20c49d4b8 0x20c4a2e54 0x20bd3e93c 0x20bd475bc 0x20bd3e5b8 0x20bd3ef58 0x20bd3d058 0x20bd3cd04 0x20bd41ec4 0x20bd42e24 0x20bd41d7c 0x20bd46c68 0x20c4a134c 0x20c08c244 0x1e1bf09d4 0x1e1bfb79c 0x1e1bfae94 0x102124dc8 0x102128a10 0x1e1c2fa9c 0x1e1c2f728 0x1e1c2fd44 0x1df14a0e0 0x1df14a060 0x1df149944 0x1df144810 0x1df1440e0 0x1e13bd584 0x20c4a4c00 0x10086b498 0x1dec02bb4)

libc++abi.dylib: terminating with uncaught exception of type NSException


I have followed the instructions in the provided link at https://googlemobileadssdk.page.link/admob-ios-update-plist 


  1. I added the sdk to cocoapods
  2. I have included the app id in the Info.plist


At this point I have tried running the app for debugging purposes and receive the same error.


I have been stuck on this for hours and now am wondering if it is nothing to do with my code at all.


Please help.


Thanks for taking the time to read this.


Andrew

--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-admob-ads-sdk/48769de5-786c-47f2-9a0f-57e9db26e818%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Andrew

unread,
Mar 26, 2019, 5:42:37 AM3/26/19
to Google Mobile Ads SDK Developers
Hi

I have tried the sample app and it works fine.

The app ID is set in my info.plist file. 

I don't really want to send the source code over to you.

Is there anything else that could be the cause of the error?

Andrew

unread,
Mar 26, 2019, 5:51:48 AM3/26/19
to Google Mobile Ads SDK Developers
I used to have firebase installed, though now I am trying to do it without firebase. But I don't think that would make a difference as I have removed all reference to firebase and unlinked it from my admob account.

mobileadssdk...@google.com

unread,
Mar 26, 2019, 3:42:38 PM3/26/19
to Andrew, Google Mobile Ads SDK Developers
Hello Andrew,

No it would not. However, the Mobile Ads SDK is no longer bundled with Firebase so you can install it as a standalone. Note that with the latest version of the SDK you will have to include your AppID with the info.plist file. Let us know if you need anything else.

Regards,
Deepika Uragayala
Mobile Ads SDK Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsubscrib...@googlegroups.com.

--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages