sbugert / react-native-admob

A react-native component for Google AdMob banners
BSD 2-Clause "Simplified" License
1.13k stars 531 forks source link

[Question] Ads are not displaying on release variant build #416

Open Unruly-Coder opened 5 years ago

Unruly-Coder commented 5 years ago

Hey, I have an issue and I don't know if this is a library issue or something else. When I build with debug variant everything looks fine, ads are displaying. However, on release build it just stops working ;(. I have checked the Logcat on release build and I see some errors related to AdMob.

02-14 23:44:05.343 23597-23619/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.sbugert.rnadmob.RNAdMobBannerViewManager
02-14 23:44:05.344 23597-23619/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.sbugert.rnadmob.RNPublisherBannerViewManager
02-14 23:44:13.002 23597-23728/? W/Ads: Invoke Firebase method getInstance error.
    The Google Mobile Ads SDK will not integrate with Firebase. Admob/Firebase integration requires the latest Firebase SDK jar, but Firebase SDK is either missing or out of date 

Is this a library issue?

haliliceylan commented 5 years ago

image i have same issue too any idea ?

working on development app working on react-native run-android --variant=release but not working on ./gradlew assembleRelease

haliliceylan commented 5 years ago

Actually is showing. this is related to admob. not about this library. wait little a bit only.

ursnj commented 5 years ago

there are many reasons to get this error.

  1. if you are testing with simulator, generally there are very limited ads to display, so we will get this error. but this will work in production.
  2. If you have created your ad units newly, so that will take some time to become active for serving ads, generally it will take 3 - 5 days to get active, so please wait and have fun.
  3. there will be some cases that you will keep some restrictions on serving ads like only display amount more than certain amount, that time ads may not be available for serving the same. so keep your ad settings always in an optimised manner.

i think these are the possible causes. let me know if you need any other info