Error With Admob Ads

Discussion in 'Technical Discussion' started by mrqwuyx, Jun 11, 2018.

  1. mrqwuyx

    mrqwuyx Avid Boxer

    Joined:
    Oct 8, 2015
    Messages:
    107
    Likes Received:
    50
    I tried to integrate admob ads into my android game, without ads game is working fine, but with ads it keeps closing on start.

    here is the logcat:

    java.lang.IllegalStateException: The ad size and ad unit ID must be set before loadAd is called.
    at com.google.android.gms.internal.zzmw.zza(Unknown Source:20)
    at com.google.android.gms.ads.BaseAdView.loadAd(Unknown Source:6)
    at com.google.android.gms.ads.AdView.loadAd(Unknown Source:0)
    at com.secrethq.ads.PTAdAdMobBridge$1.run(PTAdAdMobBridge.java:72)
    at android.os.Handler.handleCallback(Handler.java:789)
    at android.os.Handler.dispatchMessage(Handler.java:98)
    at android.os.Looper.loop(Looper.java:164)
    at android.app.ActivityThread.main(ActivityThread.java:6798)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)

    Any help can i get here?
     
  2. patostar

    patostar Avid Boxer

    Joined:
    Jan 27, 2018
    Messages:
    483
    Likes Received:
    86
    Did you insert your admob ids correctly in buildbox? check again, I think it's the problem, make sure you selected play store in the settings, and copy paste your banner and interstitial ids.
     
  3. mrqwuyx

    mrqwuyx Avid Boxer

    Joined:
    Oct 8, 2015
    Messages:
    107
    Likes Received:
    50
    @patostar I checked it and ids are correct
     

Share This Page