Admob and interstitial ads do not load at startup

The first time I download the application, the banner and full-text interstitial are not loading. Every time I click on this (or any other) activity, the advertisement is loaded with a fine. This makes me think that this is not a matter of filling. Also, I do not use any mediation, just a standard Admob network.

Below is the code I use to load the banner ad

AdView bannerAdView = (AdView)this.findViewById(R.id.adView);
    if (Settings.SHOW_ADS) {
        AdRequest adRequestBanner = new AdRequest.Builder().build();
        bannerAdView.loadAd(adRequestBanner);
    }

Cat log reports the following error

10-11 21:33:51.749  19409-19439/ W/Ads﹕ There was a problem getting an ad response. ErrorCode: 0
10-11 21:33:51.839  19409-19409/ W/Ads﹕ Failed to load ad: 0
10-11 21:33:47.039  19409-19409/ E/Ads﹕ JS: Uncaught ReferenceError: AFMA_ReceiveMessage is not defined (:1)

Is there anything I can do to make the load on ads close to 100% of the time, especially a full-screen ad?

+4
source share
5 answers

google play Gradle.

6.1.71 :

compile 'com.google.android.gms:play-services:6.1.71'
+1

Google AdMob. :

,

, , AdMob , .

№: 33943 ***

: APPNAME(Com.example.pack)

: .

:

GOOGLE PLAY: AdMob Google, Google Play, YouTube, Blogger. , Google, , YouTube.

Google Play, , Google Play . Google Play , , .

:

, AdMob . , , . , , .

, , .

.

,

Google AdMob

, . eclipse package="com.example" AndroidManifest.xml

AndroidStudio applicationId "com.example" build.gradle

+6

, , . , , , . LogCat, , Ad Ad . enter image description here

, , ( B), B . , , "" /. u .

+2

Check paddingLeft, paddingRight in the main layout if it tries to remove them. You have a similar issue resolved with uninstall.

0
source

If you are trying to test ads using adMob, you need to use the test ad id: ca-app-pub-3940256099942544/6300978111 .

If you run a test ad and use your personal ad id, it won’t work.

0
source

All Articles