Search Unity

Admob No Fill

Discussion in 'Android' started by justtime, Mar 14, 2019.

  1. justtime

    justtime

    Joined:
    Oct 6, 2013
    Posts:
    424
    Hi there!
    I try to show ads by admob, and test show works, but not real. It throws OnAdFailedToLoad event with message "No fill". What is wrong ?

    Here how i prepare ads
    Code (CSharp):
    1.  public void PrepareInterstitialAdMob()
    2.     {
    3.         Debug.Log("PrepareInterstitialAdMob");
    4.  
    5.         interstitial = new InterstitialAd(AdMobInterstitialBlockID);
    6.  
    7.         // Called when an ad request has successfully loaded.
    8.         interstitial.OnAdLoaded += HandleOnAdLoaded;
    9.  
    10.         // Called when an ad request failed to load.
    11.         interstitial.OnAdFailedToLoad += HandleOnAdFailedToLoad;
    12.  
    13.         // Called when an ad is shown.
    14.         interstitial.OnAdOpening += HandleOnAdOpened;
    15.  
    16.         // Called when the ad is closed.
    17.         interstitial.OnAdClosed += HandleOnAdClosed;
    18.  
    19.         // Called when the ad click caused the user to leave the application.
    20.         interstitial.OnAdLeavingApplication += HandleOnAdLeavingApplication;
    21.  
    22.         AdRequest request;
    23.         if (Debug.isDebugBuild)
    24.         {
    25.             request = new AdRequest.Builder()
    26.                                .AddTestDevice(TestDeviceID)
    27.                                .Build();
    28.         }
    29.         else
    30.         {
    31.             request = new AdRequest.Builder()                          
    32.                                .Build();
    33.         }
    34.  
    35.         interstitial.LoadAd(request);
    36.     }
    And then show
    Code (CSharp):
    1. private IEnumerator<float> ShowInterstitialAdMob()
    2.     {
    3.         if (interstitial == null)
    4.         {
    5.             Debug.Log("ShowInterstitialAdMob, interstitial == null");
    6.             PrepareInterstitialAdMob();
    7.         }
    8.         while (!interstitial.IsLoaded())
    9.         {
    10.             yield return Timing.WaitForOneFrame;
    11.         }
    12.  
    13.         interstitial.Show();
    14.  
    15.         if (Debug.isDebugBuild)
    16.             Debug.Log("====SHOW ADMOB INTERSTITIAL====");
    17.  
    18.         EventManager.TriggerEvent("AdsIsLoadedAndShow");
    19.     }
     
    Saman96 likes this.
  2. jviruss

    jviruss

    Joined:
    Oct 4, 2016
    Posts:
    48
    I have the same problem. Have you resolve it?
     
  3. JB_Bros

    JB_Bros

    Joined:
    Dec 19, 2017
    Posts:
    1
    May be your account is not verified for real ads.
     
  4. jviruss

    jviruss

    Joined:
    Oct 4, 2016
    Posts:
    48
    My unity ads working when I don't use admob perfectly, but when i use admob mediation, I get "no fill" sms.
     
  5. unity_-YwBDR1lqVck6A

    unity_-YwBDR1lqVck6A

    Joined:
    May 22, 2019
    Posts:
    2
    I have the same issue, has anyone been able to solve this?
     
  6. chouhdaryarslan123

    chouhdaryarslan123

    Joined:
    Jul 29, 2018
    Posts:
    4
    Try Building from MAC Book .Dont know Why/How but it works !
     
  7. JustAnotherDude

    JustAnotherDude

    Joined:
    Oct 28, 2013
    Posts:
    279
    Just gonna say my experience with AdMob is terrible.

    For starters they don't have any kind of support, I couldn't find anywhere how to contact them regarding this issue, they only direct you to their terrible forum where you'll see hundreds of threads with this exact issue and no definitive answer from anybody.

    After days I found a support form, I submitted my issue and never got any reply (this was months ago).

    I think that one of the issues is that they will simply not send you any ads (and throw the no fill error message) until your game has enough downloads and their "AI" can learn about your game to send the proper ads.

    There's no information anywhere on how long this will take or how to improve this or even if this is actually the issue.

    Another issue appears to be that you now need to link the admob ID with your game ID, if you don't do this you will never see any ads (again, this is not confirmed, as nothing is, because there is no support at all from anyone at admob), the problem is that Google is incredibly fast on banning you for the weirdest reasons, and extremely slow to unban you, and when your admob accounts and google play accounts are linked, a ban on either of them will result in a ban on both, this means you can take a long time to fix everything up just because they take weeks to verify you did nothing wrong.

    If you use their mediation they will not send you ads even from other services.

    Gladly there's a way out, massive thanks to Unity:

    Unity Ads and Admob Question

    Just use Unity Monetization 3.0 pack from the AssetStore, it just works better, and has the same ads from admob without the admob issues, it's much better, and I get about 80% fill rate.
     
    xAdamQ and Minahil like this.
  8. Opeth001

    Opeth001

    Joined:
    Jan 28, 2017
    Posts:
    1,116
    i had the same problem, if your Test ads are working then your code is OK.
    try to put your APK as a beta version on GooglePlay and link your GoogleServices.xml ("From your Firebase project") to your unity project and then download it from Google play as a tester and check again. this solved my problem.