Admob No fill from ad server - failed to load ad: 3

前端 未结 17 2375
失恋的感觉
失恋的感觉 2020-12-17 07:59

My issue is that ads are not being displayed at all in my app, test mode or not. I am going to keep this question specific to test mode, and once I get that working I will w

17条回答
  •  感动是毒
    2020-12-17 08:54

    It might be because you're not waiting for the ad to load.

    For me implementing the AdLoaded method of the AdListener did the job.

        mAdInterstitial.loadAd(AdRequest.Builder().addTestDevice("XXXXXXX").build())
        mAdInterstitial.adListener = object : AdListener() {
            override fun onAdLoaded() {
                mAdInterstitial.show()
            }
        }
    

提交回复
热议问题