‘GADInvalidInitializationException’, reason: ‘The Google Mobile Ads SDK was initialized without an application ID

59 viewsadmobiosplistswiftui
0

I know this is an old problem and saw previous responses and tried all steps;

  • I successfully added Library using XCode packages and bot Pods both tried
  • I added -ObjC to ALL linker flags including project level and target level
  • I added Info.plist file as exactly suggested here https://developers.google.com/admob/ios/quick-start#update_your_infoplist and I have a published application but dont have an Admob account yet so I used this generic id. ca-app-pub-3940256099942544~1458002511
  • I tried this key = GADIsAdManagerApp true.
  • Even I just have import GoogleMobileAds, not added this still error GADMobileAds.sharedInstance().start(completionHandler: nil)

I tried on real phone, but still I have same error, and I am working on it around a week, so all helps are appreciated.