sbugert / react-native-admob

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

Cannot display ads using React native 0.60.4 android #464

Closed mmoonn2 closed 4 years ago

mmoonn2 commented 4 years ago

I upgraded my project to react native 0.60

Everything is fine.

Using test ads is working IOS is working

But in android, I can’t always show ads. Error: The ad request was successful, but no ad was returned due to lack of ad inventory.

Install an old version of apk to display ads

But the apk under react native 0.60 can't display ads.

Can someone help me?

mmoonn2 commented 4 years ago
buildTypes {
        debug { 
            debuggable true 
        } 
        release {
            minifyEnabled enableProguardInReleaseBuilds
            signingConfig signingConfigs.release
            proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
        }
    }

Edit In /app/build.gradle

signingConfig signingConfigs.debug to signingConfig signingConfigs.release