sunnycupertino / cordova-plugin-admob-simple

Cordova plugin allowing Admob interstitials and banner ads.
MIT License
164 stars 150 forks source link

onFailedToReceiveAd : reason : "No Fill" - Cannot display banner/interstitial ads #44

Closed shinobirozs closed 5 years ago

shinobirozs commented 5 years ago

Hi,

Good Day, I started using the admob-simple again and found out that in production no ads were being displayed. Test Ads are properly shown but not the actual live ads.

This is the information i got from onFailedToReceiveAd

reason:"No Fill"

I'm just hoping somebody already encountered and solved this issue. Thanks in advance.

sunnycupertino commented 5 years ago

Hi. Did you put your app id correctly into the AndroidManifest.xml?

shinobirozs commented 5 years ago

Hi, Yes, I followed the user manual as seen on my files below.

config.xml

<?xml version='1.0' encoding='utf-8'?>
<widget id="com.thenameofmygame.www" version="1.0.3" xmlns="http://www.w3.org/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<config-file parent="./application" target="AndroidManifest.xml">
        <meta-data android:name="com.google.android.gms.ads.APPLICATION_ID" android:value="ca-app-pub-xxxxxxxxxxxxx~xxxxxxxxxx" />
    </config-file>

AndroidManifest.xml

<?xml version='1.0' encoding='utf-8'?>
<manifest android:hardwareAccelerated="true" android:versionCode="10003" android:versionName="1.0.3" package="com.youwillbecrushed.www" xmlns:android="http://schemas.android.com/apk/res/android">
    <supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" />
    <uses-permission android:name="android.permission.INTERNET" />
    <application android:hardwareAccelerated="true" android:icon="@mipmap/icon" android:label="@string/app_name" android:supportsRtl="true">
        <activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="@string/activity_name" android:launchMode="singleTop" android:name="MainActivity" android:theme="@android:style/Theme.DeviceDefault.NoActionBar" android:windowSoftInputMode="adjustResize">
            <intent-filter android:label="@string/launcher_name">
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" android:name="com.google.android.gms.ads.AdActivity" android:theme="@android:style/Theme.Translucent" />
        <meta-data android:name="com.google.android.gms.ads.APPLICATION_ID" android:value="ca-app-pub-xxxxxxxxxxxxx~xxxxxxxxxx" />
    </application>
    <uses-sdk android:minSdkVersion="19" android:targetSdkVersion="26" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
</manifest>

I also checked my AdMob report to see if there were any impressions or match requests. Here is what I found.

AdMob Network requests: 236 Matched requests: 1

My other apps which are still using the old admob-simple plugin, still show ads. All of them.

Thanks in advance for your help.

sunnycupertino commented 5 years ago

Did you update this part in the manifest

ca-app-pub-xxxxxxxxxxxxx~xxxxxxxxxx

To contain your actual app id?

shinobirozs commented 5 years ago

Hi, Yeah triple checked it.

sunnycupertino commented 5 years ago

Can you send me the play store link to your app?

shinobirozs commented 5 years ago

https://play.google.com/store/apps/details?id=com.youwillbecrushed.www

shinobirozs commented 5 years ago

Ads are showing properly now. Thank you. You may close this issue. Thanks.

sunnycupertino commented 5 years ago

Yes admob can take some days to activate new apps and serve ads.