Interstitial Ad Taking Too Much Time To Load and Show

254 views
Skip to first unread message

Tauseeq Afzal

unread,
Sep 21, 2023, 12:02:14 AM9/21/23
to Google Mobile Ads SDK Developers
i Have Done Implementation of Interstitial Ad according To Google AdmobSDK, But Interstitial Ad Taking 11 to 12 Second and Sometime 7 or 8 Second to load the ad why? The Code was Working Fine before it was taking approximately 2-3 Seconds to load the ads and than show. But suddenly this issue is occuring what is the reason ? anyone can help or guide ?

When i call loadInterstitialAd() method on Adloaded Called after 10 Second or 13 Second

fun loadInterstitialAd( context: Context, adInterId: String, listener: (Boolean) -> Unit ) { if (!isAdLoaded && admobInterAd == null) { isAdLoading= true val adRequest = AdRequest.Builder().build() InterstitialAd.load(context, adInterId, adRequest, object : InterstitialAdLoadCallback() { override fun onAdFailedToLoad(ad: LoadAdError) { Log.e(Constants.TAG, "onAdFailedToLoad - $ad") admobInterAd = null isAdLoaded = false isAdLoading=false listener.invoke(false) } override fun onAdLoaded(ad: InterstitialAd) { admobInterAd = ad isAdLoaded = true isAdLoading=false listener.invoke(true) } }) } }

when this Callback trigger i actually show the ad and move to Next Screen after Ad Dismissed

Mobile Ads SDK Forum Advisor

unread,
Sep 21, 2023, 5:43:49 AM9/21/23
to tauseeqa...@gmail.com, google-adm...@googlegroups.com

Hi,

Thank you for contacting the Mobile Ads SDK Support team.

Upon reviewing your concern, I understand that you are facing an issue with Google Admob SDK. Kindly provide the below information for further investigation:

  • App ID 
  • Ad Unit ID
  • Mobile Ads SDK Version
  • Sample project reproducing issue
  • Screenshots / video

If the file(s) you are looking to share are less than 25mb in total you can attach them to this case on your next reply. If you are having trouble attaching your file to this case or if your file(s) are larger than 25mb, kindly provide requested information to us via reply privately to author option or using the steps below:

1. Navigate to
https://docs.google.com/forms/d/e/1FAIpQLSfkAiXMeYP-fw1W3Z-tT9uwmATEKO5X6S-th0gR2ezdKaaqfg/viewform?usp=pp_url&entry.400550049=Mobile+Ads+SDK&entry.460850823=5004Q00002p01QcQAI&entry.80707362=00199437

2. Fill out all fields, and attach your file(s).

3. Please reply back to this thread when you have uploaded your file(s). Please do not share this link.
 
This message is in relation to case "ref:_00D1U1174p._5004Q2p01Qc:ref"

Thanks,
 
Google Logo Mobile Ads SDK Team

 



Tauseeq Afzal

unread,
Sep 30, 2023, 1:06:07 AM9/30/23
to Google Mobile Ads SDK Developers
I have Submitted the details kindly check it out 

Tauseeq Afzal

unread,
Oct 3, 2023, 4:38:07 AM10/3/23
to Google Mobile Ads SDK Developers
Log.e(Constants.TAG, "Interstitial Ad Loading Request....")
val adRequest = AdRequest.Builder().build()
Handler(Looper.getMainLooper()).postDelayed({
InterstitialAd.load(activity,"ca-app-pub-3940256099942544/1033173712", adRequest, object : InterstitialAdLoadCallback() {
override fun onAdFailedToLoad(adError: LoadAdError) {
Log.e(Constants.TAG, "Interstitial AdFailedToLoad - $adError")
mInterstitialAd = null
}

override fun onAdLoaded(interstitialAd: InterstitialAd) {
Log.e(Constants.TAG, "Interstitial Ad Loaded....")
mInterstitialAd = interstitialAd
mInterstitialAd?.show(activity)
mInterstitialAd?.fullScreenContentCallback =
object : FullScreenContentCallback() {
override fun onAdDismissedFullScreenContent() {
Log.e(Constants.TAG, "Interstitial Ad Dismissed ")
Constants.isInterShowing = false
mInterstitialAd = null
isAdLoaded = false
listener.invoke(true)
}

override fun onAdFailedToShowFullScreenContent(p0: AdError) {
super.onAdFailedToShowFullScreenContent(p0)
Log.e(Constants.TAG, "Interstitial AdFailedToShowFullScreenContent - ${p0}")
Constants.isInterShowing = false
isAdLoaded = false
listener.invoke(false)
}

override fun onAdImpression() {
}

override fun onAdShowedFullScreenContent() {
Constants.isInterShowing = true
}
}
}
})
},6000)


Log:
2023-10-03 01:23:37.070 17251-17251 AdsTag                  com.gracetech.adsintegration         E  Interstitial Ad Loading Request....
2023-10-03 01:23:52.288 17251-17251 AdsTag                  com.gracetech.adsintegration         E  Interstitial Ad Loaded....

Mobile Ads SDK Forum Advisor

unread,
Oct 4, 2023, 7:14:43 AM10/4/23
to tauseeqa...@gmail.com, google-adm...@googlegroups.com

Hi, 

Thank you for providing the code snippet. 

I have run the sample application with your ad unit ID and the ad is loading within 2-3 seconds.

Please refer to the sample application for the implementation.

When implementing ads in your application, it is very important to follow AdMob Policies, as well as Implementation Guidelines to avoid any issues. 

Kindly double check your implementation so that Ads load and show as expected. You may refer to the Interstitial Implementation Guidelines, as well as the Recommended and Disallowed implementation guidance for further reference.

If the issue still persists, then please provide the following information privately for further investigation:

  • Sample project reproducing the issue

You can provide the following details via reply privately to the author option or directly provide it to the link below.

If the file(s) you are looking to share are less than 25mb in total you can attach them to this case on your next reply. If you are having trouble attaching your file to this case or if your file(s) are larger than 25mb, you can share your files with me by performing the following steps:

1. Navigate to link

Message has been deleted
Message has been deleted

Mobile Ads SDK Forum Advisor

unread,
Oct 6, 2023, 5:21:02 AM10/6/23
to tauseeqa...@gmail.com, google-adm...@googlegroups.com

Hi,

Please note that we’ve received ad unit IDs, but not the sample project reproducing the issue.

I have run the sample application with your ad unit ID and the ad is loading within 1-2 seconds. Please refer to the sample application for the implementation reference. If the issue still persists, then please provide the following information privately for further investigation:

    • Sample project reproducing the issue
    • Video recording reproducing the issue
    Reply all
    Reply to author
    Forward
    0 new messages