The Google Mobile Ads SDK was initialized incorrectly

175 views
Skip to first unread message

just...@gmail.com

unread,
Mar 24, 2019, 1:57:34 PM3/24/19
to Google Mobile Ads SDK Developers
When I built it using xcode and ran it on my iPhone, I was prompted with the following error:
Uncaught exception: GADInvalidInitializationException: 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
The website in the description could not be opened.
some detali:
xcode Version 10.1 (10B61)
macOS 10.14.3 (18D109)
Unity 2018.3.2f1
IOS 12.0

I have installed cocoapods and used the command to upgrade the Google Mobile Ads SDK to version 7.42.0.And downloaded your sample HelloWorld in this website at https://github.com/googleads/googleads-mobile-unity/tree/master/samples.. On the basis of the sample into the GoogleMobileAds unitypackage, Then export to the XCODE project, Build still appear after the completion of this error,It's really painful for me. How can I successfully use Admob? Please help me, Thank you!

just...@gmail.com

unread,
Mar 24, 2019, 1:59:46 PM3/24/19
to Google Mobile Ads SDK Developers
Uncaught exception: GADInvalidInitializationException: 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
(
0   CoreFoundation                      0x00000001be20ff10 <redacted> + 252
1   libobjc.A.dylib                     0x00000001bd3dda40 objc_exception_throw + 56
2   CoreFoundation                      0x00000001be127dcc <redacted> + 0
3   hittheroom                          0x000000010391c23c GADVerifyApplicationID + 152
4   hittheroom                          0x000000010391ce58 GADVerifyApplicationID + 3252
5   libdispatch.dylib                   0x00000001bdc476c8 <redacted> + 24
6   libdispatch.dylib                   0x00000001bdc48484 <redacted> + 16
7   libdispatch.dylib                   0x00000001bdbf49ec <redacted> + 1068
8   CoreFoundation                      0x00000001be19e1bc <redacted> + 12
9   CoreFoundation                      0x00000001be199084 <redacted> + 1964
10  CoreFoundation                      0x00000001be1985b8 CFRunLoopRunSpecific + 436
11  GraphicsServices                    0x00000001c040c584 GSEventRunModal + 100
12  UIKitCore                           0x00000001eac13558 UIApplicationMain + 212
13  hittheroom                          0x0000000102dd5180 main + 160
14  libdyld.dylib                       0x00000001bdc58b94 <redacted> + 4
)

This is the full error report

在 2019年3月25日星期一 UTC+8上午1:57:34,just...@gmail.com写道:

mobileadssdk...@google.com

unread,
Mar 25, 2019, 4:11:43 AM3/25/19
to just...@gmail.com, Google Mobile Ads SDK Developers
Hi,

I noticed that you already have an existing thread with regards to your concern. For better tracking, let's continue our discussion there.

Regards,
Teejay Pimentel
Mobile Ads SDK Team

--

---
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/15757d93-087e-4507-95f3-832a35071590%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages