Admob Banner Ads not showing in Same IP

281 views
Skip to first unread message

Tech Solutions 32

unread,
Jul 26, 2017, 4:26:02 AM7/26/17
to Google Mobile Ads SDK Developers
Hi ,


I am a new android developer and implemented both interstitial and banner ads in my 2 apps but from last 8-9 days banner ads are showing in my mobile for a short period, not permanently. Then i was downloaded bluestacks in my pc to check the banner ads, but in there, banner ads were successfully showing. From yesterday, banner ads also stopped showing in bluestacks which is a very frustrating situation for me. If please anyone can sure me that whether or not banner ads are showing in other mobiles OR banner ads only stopped showing in my same IP ( because my computer internet is also connected with WIFI ). I checked everything in android studio, applied all methods but the problem is same that banner ads SOMETIMES show in my mobile but not permanently. I am attaching apk's:

Secret of Healthy Eyes:

Hamariweb Official:

Ivan Bautista (Mobile Ads SDK Team)

unread,
Jul 26, 2017, 7:34:44 AM7/26/17
to Google Mobile Ads SDK Developers
Hi,

Thank you for providing your sample apks. 

I was able to verify that ads are being successfully loaded and returned while running the sample apps you provided on our device. However, I can't seem to locate or verify where the loaded banner ad was displayed in your Hamariweb sample app. 

Could you test your Ad Unit Ids with our sample apps and see if you can reproduce the issue? 

Could you also share with us code snippets of your Ad Requests and where you display/show the ads so we can further investigate?

Regards,
Ivan Bautista
Mobile Ads SDK Team

Tech Solutions 32

unread,
Jul 26, 2017, 10:17:53 AM7/26/17
to Google Mobile Ads SDK Developers
Hi,

Thanks for your instant reply

Here are the code snippets of the ads in Hamariweb Official:

Main Activity.java
InterstitialAd mInterstitialAd;
private InterstitialAd interstitial;



Main Activity.java (onCreate)
AdView mAdView = (AdView) findViewById(R.id.adView);
       
AdRequest adRequest = new AdRequest.Builder().build();
        mAdView
.loadAd(adRequest);

// Prepare the Interstitial Ad
        interstitial = new InterstitialAd(MainActivity.this);
// Insert the Ad Unit ID
        interstitial.setAdUnitId(getString(R.string.admob_interstitial_id));

       
interstitial.loadAd(adRequest);
// Prepare an Interstitial Ad Listener
        interstitial.setAdListener(new AdListener() {
           
public void onAdLoaded() {
               
// Call displayInterstitial() function
                displayInterstitial();
           
}
       
});
   
}

   
public void displayInterstitial() {
// If Ads are loaded, show Interstitial else show nothing.
        if (interstitial.isLoaded()) {
           
interstitial.show();
       
}
   
}



Activity_main.xml
<com.google.android.gms.ads.AdView
    android:id="@+id/adView"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    ads:adSize="BANNER"
    ads:adUnitId="ca-app-pub-3952990728602215/8548138282" />


Build.gradle
compile 'com.google.firebase:firebase-ads:11.0.2'
testCompile 'junit:junit:4.12'
compile 'com.google.android.gms:play-services-ads:11.0.1'


Here are the code snippets of the ads in Secret of Healthy Eyes:

Main Activity.java
InterstitialAd mInterstitialAd;
private InterstitialAd interstitial;


Main Activity.java (onCreate)
AdView mAdView = (AdView) findViewById(R.id.adView);
       
AdRequest adRequest = new AdRequest.Builder().build();
        mAdView
.loadAd(adRequest);

// Prepare the Interstitial Ad
        interstitial = new InterstitialAd(MainActivity.this);
// Insert the Ad Unit ID
        interstitial.setAdUnitId(getString(R.string.admob_interstitial_id));

       
interstitial.loadAd(adRequest);
// Prepare an Interstitial Ad Listener
        interstitial.setAdListener(new AdListener() {
           
public void onAdLoaded() {
               
// Call displayInterstitial() function
                displayInterstitial();


           
}
       
});

   
}



   
public void displayInterstitial() {
// If Ads are loaded, show Interstitial else show nothing.
        if (interstitial.isLoaded()) {
           
interstitial.show();

       
}
   
}
}



Activity_main.xml
<com.google.android.gms.ads.AdView
    android:id="@+id/adView"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:layout_alignParentBottom="true"
    android:layout_alignParentLeft="true"
    android:layout_alignParentStart="true"
    ads:adSize="BANNER"
    ads:adUnitId="@string/banner_ad_unit_id" />


Build.gradle
compile 'com.google.android.gms:play-services-ads:11.0.2'


I am also attaching the picture to identify the banner ads in hamariweb official & Secret of Healthy eyes which sometimes shows and sometimes not:


Hamariweb official:


Secret of Healthy Eyes:



In some activities ads shows here :







I am here to give you other information you want :) please don't hesitate.


Best Wishes

Muhammad Shaheer Raza

Ivan Bautista (Mobile Ads SDK Team)

unread,
Jul 27, 2017, 3:49:50 AM7/27/17
to Google Mobile Ads SDK Developers
Hi Muhammad,

Thank you for providing your code snippets. Looking at your code, there doesn't seem to be anything unusual so the Ad Requests should be working as expected. However, please be mindful of where Interstitial Ads should be displayed.

Being that I was able to load ads using your sample apks on my end and you confirmed that ads are showing at times as well, it's safe to say that there is nothing wrong with your implementation on the SDK perspective. However, there are other factors that could result to ads not displaying such as the No fill error, which basically means that there are no available ads from the Ad Networks and could be considered as intended behavior.

While running your sample apks on my device, I too, encountered No fill error at times. Could you check if you see the same in your device logs during those times where no ads are displaying and share it with us so we can double check?

Could you also confirm to us the affected Ad Unit Ids so we can double check on our end? Were you also able to reproduce the issue when testing your Ad Unit Ids with our sample apps?

Tech Solutions 32

unread,
Jul 27, 2017, 4:25:54 AM7/27/17
to Google Mobile Ads SDK Developers
Hi,

Thank you very much for your satisfying reply. Can you please more clarify the No fill error ? & how can i able to solve the No fill error issue in my apps?. Please also tell me the method that how can i test my ads through your sample apps.

I will be very thankful to you.

Regards
Muhammad Shaheer Raza

Ivan Bautista (Mobile Ads SDK Team)

unread,
Jul 27, 2017, 5:46:06 AM7/27/17
to Google Mobile Ads SDK Developers
Hi Muhammad,

I'm glad to hear that I could be of help. 

Below are my answers to your questions.

Can you please more clarify the No fill error ? & how can i able to solve the No fill error issue in my apps?. 
No fill error could simply mean that your Ad request was successful but there are no available Ads for your request from any of the Ad Networks at those particular times. This is expected behavior. One way to help lessen the occurrences of No fill error is to mediate to other 3rd party Ad networks.

Please also tell me the method that how can i test my ads through your sample apps.
You just need to change the Ad Unit Ids in the sample apps, then build and run the sample app. You can change the adUnitId in activity_my.xml file of BannerExample app to your Banner Ad Unit Id to test display of banner ads. Then, change the string value for the setAdUnitId("YOUR INTERSTITIAL AD UNIT ID") in the MyActivity class of IntersitialExample app to test display of Interstitial ads.

Let me know if this helps or if you need further assistance.

Tech Solutions 32

unread,
Jul 27, 2017, 9:29:17 AM7/27/17
to Google Mobile Ads SDK Developers
Hi,

Thank you very much for your recent reply,

I am very satisfied from your recent answer. Last question which is popping up in my mind that how can i mediate to other 3rd party Ad networks? can you please give me the method?

Thanks
Muhammad Shaheer Raza   

Ivan Bautista (Mobile Ads SDK Team)

unread,
Jul 28, 2017, 12:13:49 AM7/28/17
to Google Mobile Ads SDK Developers
Hi Muhammad,

That's good to hear. 

As mentioned in the Mediation guide provided earlier, you need to follow up the below general steps across all 3rd party Ad Networks.
  1. Third-party ad network UI - Sign up for the third-party ad network and create a placement in their frontend. You can choose from any supported Ad Networks listed in the guide.
  2. AdMob UI - Update your ad unit's mediation settings to include the ad network. It is also recommended that you set up ad network optimization for ad networks that support it.
  3. App code - Update your app to include the third-party ad network's SDK, and an adapter library that communicates between Google and the third-party ad network to request and serve ads.
The 3rd step mentioned may have varying and additional instructions for each supported 3rd party Ad Network. For example, for mediating with AdColony, you may refer to this guide.

If you need further assistance, then I suggest that you create a new forum thread to have a more consistent flow of discussion between threads. From there, we'll gladly assist you with any further concerns you have with mediation or other Mobile Ads SDK related concerns.

Tech Solutions 32

unread,
Jul 28, 2017, 3:56:39 AM7/28/17
to Google Mobile Ads SDK Developers
Hi,

Thank you very much SDK Doctor Ivan Paul Benedict Bautista ! :) all my questions are satified perfectly. Again thank you very much for your kind support ;).

Best Regards,
Muhammad Shaheer Raza

Ivan Bautista (Mobile Ads SDK Team)

unread,
Jul 28, 2017, 4:26:06 AM7/28/17
to Google Mobile Ads SDK Developers
Hi Muhammad,

I'm glad I could help. Feel free to create a new thread if you have any other Mobile Ads SDK concerns.
Reply all
Reply to author
Forward
0 new messages