Closed aedoardo closed 1 month ago
Just an update: today it seems to work on a physical device. I didn't change anything.
Just another update: it is working on physical devices, but it is not working (neither with the TestIds) in the emulator, even if I added the device's adsid in the admob settings.
Hello 👋, to help manage issues we automatically close stale issues.
This issue has been automatically marked as stale because it has not had activity for quite some time.Has this issue been fixed, or does it still require attention?
This issue will be closed in 15 days if no further activity occurs.
Thank you for your contributions.
What happened?
Hi everyone, I'm trying to figure out the issue that I'm facing, and I hope someone can help me because I'm getting crazy :)
So, first of all, I have my app in the "ready" status in AdMob.
I initialize the mobileAds in the main app file (App.tsx in my case):
In this case, the
console.log
produces this output:[{"description": "", "name": "com.google.android.gms.ads.MobileAds", "state": 1}]
. I guess it's okay.Now, I'm trying to run just a simple Interstitial in this way:
Just a note: I pasted the ad with the test id in this example, but I'm facing the same problem with a valid unit id. However, when I run this code I have this error:
Ad event: error [Error: [googleMobileAds/internal-error] Internal error.]
, without any other information. Trying to understand further details, I checked theadb logcat
, and I can see two logs related to the ad:From here, I have no idea what the problem might be.
Sometimes, in the logs, I have also these two logs:
I want to add another information: I tested even on my smartphone, but it happens the same thing: the ad doesn't load, and I can't show it (it produces an error since it wasn't loaded). However, the logs are from a "Pixel 3 XL API R Android 11.0 (Google APIs)" emulator.
I am hoping someone can give me some suggestions; I thank you in advance :)
Platforms
Android, but have not tested behavior on iOS
React Native Info
Are your using Typescript?
package.json
app.json
ios/Podfile
No response
android/build.gradle
android/app/build.gradle
android/settings.gradle
AndroidManifest.xml