Reputation: 11
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'
I've tried write a GADApplicationIdentifier in my plist but failed. I have the same error.
GADApplicationIdentifier string ca-app-pub-2246624909005244~xxxxxx
That is wrong. I have no idea now.
Upvotes: 1
Views: 624
Reputation: 1065
I got it working by declaring that my app was an Ad Manager. I added the following to my info.plist:
<key>GADIsAdManagerApp</key>
<true/>
Read more here: Get Started Mobile Ads SDK
Upvotes: 1