Android admob crashes game when LoadInterstitial() is called

Discussion in 'Programming' started by Farouk, Jun 12, 2018.

Tags:
  1. Farouk

    Farouk Member

    Joined:
    Feb 7, 2018
    Posts:
    58
    Hi
    i updated the Google play services extension

    right after that the game started crashing whenever GoogleMobileAs_LoadInterstitial(); is called

    the error in the output is :
    Unable to find method to invoke matching methodname:GoogleMobileAds_Init on class:GooglePlayServicesExtension with params:
    The ad unit ID must be set on InterstitialAd before loadAd is called


    i already load the test ads in a previous room using this code:
    GoogleMobileAds_Init("ca-app-pub-3940256099942544/1033173712");
    this is google test ad id

    why is this happening?
     
    Last edited: Jun 12, 2018
  2. Farouk

    Farouk Member

    Joined:
    Feb 7, 2018
    Posts:
    58
    ok this was about to make me crazy
    here is what i found


    Changes in 3.0.1
    Added Rewarded Ads

    Updated extension to Google Play Services API 11.8 (November 2017)

    GoogleMobileAds_Init() now requires a Google Ads Unit ID and AdMob ID string or it will fail to initialise correctly: GoogleMobileAds_Init("myGoogleAdsUnitID","myAdMobID"); Alternatively you can leave the AdMob ID parameter with a blank string and it will initialise correctly: GoogleMobileAds_Init("myGoogleAdsUnitID","");

    Version 3.0.1. Published May 17, 2018
     
    Destiner likes this.
  3. Destiner

    Destiner Member

    Joined:
    Friday
    Posts:
    1
    I just created an account just to thank you. It drove me crazy.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice