1

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.

rmaddy
  • 314,917
  • 42
  • 532
  • 579
Knun Lee
  • 11
  • 3

1 Answers1

1

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

Ivan Le Hjelmeland
  • 1,065
  • 11
  • 26