react-native-google-mobile-ads icon indicating copy to clipboard operation
react-native-google-mobile-ads copied to clipboard

[🐛] Banner Ads not loading on React Native 0.72.3 (Android)

Open lck-ams opened this issue 3 years ago • 6 comments

What happened?

Banner Ads are not loading in my App, even with Test Ads. Other type of Ads works fine (e.g. Interstitial), but no request were sent for Banner Ads when looking at Ad Inspector.

Ads were working when it was in React Native 0.72.1.

Platforms

Android, but have not tested behavior on iOS

React Native Info

N/A

Are your using Typescript?

  • [ ] My project is using Typescript

package.json

"expo": "49.0.6",
"react": "18.2.0",
"react-native": "0.72.3",
"react-native-google-mobile-ads": "11.6.1"

app.json

"react-native-google-mobile-ads": {
  "android_app_id": "ca-app-pub-xxxxxxxxxxxx~xxxxxxxxxxx",
  "ios_app_id": "ca-app-pub-xxxxxxxxxxxx~xxxxxxxxxxx",
}

Both App Id are valid, the issue also affects Test Ads, so it's not Production specific.

ios/Podfile

N/A

android/build.gradle

N/A

android/app/build.gradle

N/A

android/settings.gradle

N/A

AndroidManifest.xml

N/A

lck-ams avatar Jul 31 '23 14:07 lck-ams

What does the callback onAdFailedToLoad log?

dylancom avatar Aug 01 '23 06:08 dylancom

It logs nothing on onAdFailedToLoad, onAdLoaded, or onAdOpened. It does however takes up the banner space, but it just displays a blank space.

lck-ams avatar Aug 02 '23 02:08 lck-ams

Same. They aren't showing on iOS either.

peter-featherstone avatar Aug 02 '23 15:08 peter-featherstone

Same issue. Both test ads and prod ads not showing in ios and Android.

    "react-native-google-mobile-ads": "^11.6.4",
    "react-native": "0.72.3",
    "expo": "~49.0.6",

It's showing only blank space. No error in error callbacks.

saravanakumargn avatar Aug 05 '23 02:08 saravanakumargn

Please refer https://github.com/invertase/react-native-google-mobile-ads/issues/427#issuecomment-1666442152

saravanakumargn avatar Aug 05 '23 08:08 saravanakumargn

Should be fixed in 11.6.5. Thanks @saravanakumargn for giving more details.

dylancom avatar Aug 05 '23 10:08 dylancom