Google Mobile Ads SDK was initialized without an application ID. Xcode

580 views
Skip to first unread message

Dante Ausonio

unread,
Jun 28, 2023, 3:17:03 PM6/28/23
to Google Mobile Ads SDK Developers
I followed the set up exactly as shown in the documentation multiple times, implemented it using both the cocoa pods method, and the sift package manager method, and I keep getting this error no matter what I do. I have the right key, value pair in the info.plist file. I replaced the example app ID with my own app id, and I initialized everything properly in my didFinishLaunchingWithOptions function in the app delegate. I have no idea what could be going wrong. I have even tried doing an async await to delay the initialization process. I do have firebase installed, and a GoogleService-Info.plist file in the project (if that effects anything). This seems like a pretty straight forward process so I can't figure out what's going wrong.

Mobile Ads SDK Forum Advisor

unread,
Jun 29, 2023, 10:06:50 AM6/29/23
to ktefb...@gmail.com, google-adm...@googlegroups.com

Hi Dante,

Thank you for reaching out to us.

With regard to your concern, can you confirm if you're able to follow instructions at https://developers.google.com/admob/ios/quick-start#update_your_infoplist to set a valid application ID for AdMob, and if you're using Google Ad Manager, this instructions at https://developers.google.com/ad-manager/mobile-ads-sdk/ios/quick-start#update_your_infoplist? If upon following this still returns that error, kindly provide us the following information below for us to further check.

  • Sample app project where this behavior is happening
  • Steps to replicate
  • SDK version
  • Mediation adapter use (if any)
  • App ID
  • Device name and versions affected

You can provide the following details via reply on this thread or directly provide it to the link below.

If the file(s) you are looking to share are less than 25mb in total you can attach them to this case on your next reply. If you are having trouble attaching your file to this case or if your file(s) are larger than 25mb, you can share your files with me by performing the following steps:

1. Navigate to https://docs.google.com/forms/d/e/1FAIpQLSfkAiXMeYP-fw1W3Z-tT9uwmATEKO5X6S-th0gR2ezdKaaqfg/viewform?usp=pp_url&entry.400550049=Mobile+Ads+SDK&entry.460850823=5004Q00002mpP63QAE&entry.80707362=00186403

2. Fill out all fields, and attach your file(s).

3. Please reply back on this thread when you have uploaded your file(s). Please do not share this link.

This message is in relation to case "ref:_00D1U1174p._5004Q2mpP63:ref"

Thanks,
 
Google Logo Mobile Ads SDK Team


Dante Ausonio

unread,
Jul 1, 2023, 1:48:38 AM7/1/23
to Mobile Ads SDK Forum Advisor, google-adm...@googlegroups.com
I have followed all of the documentation steps accurately. I created an example app where I literally did nothing except the document steps, and it still doesn't work.
My App ID is: ca-app-pub-6242825092444137~3309321206
SDK Version: 10.7.0
Steps to Replicate: Basically, the steps laid out in the "Get Started" documentation, with a slightly different setup in App Delegate for SwiftUI.
Not sure what you mean by Device name and versions affected, but I am using XCode on MacBook Pro OS - Ventura 13.4.1 with Apple M1 Pro Chip.



AdMobExample.zip

Mobile Ads SDK Forum Advisor

unread,
Jul 3, 2023, 9:54:34 AM7/3/23
to ktefb...@gmail.com, google-adm...@googlegroups.com

Hi Dante,

Thank you for your response.

Upon checking the sample app project you've provided, I was able to replicate the error when building it in the simulator. However, it appears that you manually added the SDK framework in your sample app and adding the -ObjC linker flag to Other Linker Flags in your project's build settings is not added. With that, kindly add it in your end as per the steps on this documentation guide (https://developers.google.com/admob/ios/quick-start#manual_download). I've tried it also in my end using your sample app, and I was able to run the app without the error.

Reply all
Reply to author
Forward
0 new messages