Admob ad will not load. Error 2. It worked before but suddenly stopped

后端 未结 12 1783
长情又很酷
长情又很酷 2020-12-11 01:29

Here is the entire class that I am trying to load a banner ad into (createAd() method does the work)

public class HomeActivity extends Activity {

    privat         


        
相关标签:
12条回答
  • 2020-12-11 01:36

    Check that your device has a proper internet connection. Without internet connection you will not get ads.

    0 讨论(0)
  • 2020-12-11 01:37

    Admob ad will not load. Error 2 appears if date or time is wrong on your device, just set autodate correcting on your device

    0 讨论(0)
  • 2020-12-11 01:40

    Another issue could be an adblocker application as suggested in this post: https://stackoverflow.com/a/36010639/3596576 by @Durian.

    For me this was the issue.

    0 讨论(0)
  • 2020-12-11 01:41

    Error no 2 means ERROR_CODE_NETWORK_ERROR. so check your internet connection and still not showing ads then just restart your mobile and check...that was worked for me.

    0 讨论(0)
  • 2020-12-11 01:42

    I had the same issue of the ad not appearing on the physical test device screen.

    I switched off my wifi and started using 3g mobile data and then my ads started appearing on the physical test devices.

    I also have a difference in dependecies:

    com.google.android.gms:play-services-ads:9.2.0
    

    instead of 11.6.2

    0 讨论(0)
  • 2020-12-11 01:43

    This behavior is being caused by an app making too many ad requests at once, which puts the SDK into a bad state. Restarting Google play services, which can effectively be done by clearing all data, fixes the issue for me. The SDK fix for this issue will be included in the next Google play services release. Once your device picks up the update, you won't need to update your app. this is known issue of sdk

    0 讨论(0)
提交回复
热议问题