A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developers.google.com/admob/android/ad-load-errors below:

Ad load errors | Android

Skip to main content Ad load errors

Stay organized with collections Save and categorize content based on your preferences.

In cases where an ad fails to load, a callback is called which provides a LoadAdError object.

For AdView, the following is called:

The following example shows the information available when an ad fails to load:

Kotlin
override fun onAdFailedToLoad(error: LoadAdError) {
  // Gets the domain from which the error came.
  val errorDomain = error.domain
  // Gets the error code. See
  // https://developers.google.com/admob/android/reference/com/google/android/gms/ads/AdRequest#constant-summary
  // for a list of possible codes.
  val errorCode = error.code
  // Gets an error message.
  // For example "Account not approved yet". See
  // https://support.google.com/admob/answer/9905175 for explanations of
  // common errors.
  val errorMessage = error.message
  // Gets additional response information about the request. See
  // https://developers.google.com/admob/android/response-info
  // information.
  val responseInfo = error.responseInfo
  // Gets the cause of the error, if available.
  val cause = error.cause
  // All of this information is available using the error's toString() method.
  Log.d("Ads", error.toString())
}
Java
@Override
public void onAdFailedToLoad(LoadAdError error) {
  // Gets the domain from which the error came.
  String errorDomain = error.getDomain();
  // Gets the error code. See
  // https://developers.google.com/admob/android/reference/com/google/android/gms/ads/AdRequest#constant-summary
  // for a list of possible codes.
  int errorCode = error.getCode();
  // Gets an error message.
  // For example "Account not approved yet". See
  // https://support.google.com/admob/answer/9905175 for explanations of
  // common errors.
  String errorMessage = error.getMessage();
  // Gets additional response information about the request. See
  // https://developers.google.com/admob/android/response-info
  // for more information.
  ResponseInfo responseInfo = error.getResponseInfo();
  // Gets the cause of the error, if available.
  AdError cause = error.getCause();
  // All of this information is available using the error's toString() method.
  Log.d("Ads", error.toString());
}

For errors under the domain

MobileAds.ERROR_DOMAIN

, the message can be looked up in the

Resolve common onboarding issues article

for a more detailed explanation and possible actions that can be taken to resolve the issue.

Debug common error logging messages

In version 23.5.0 of the Google Mobile Ads SDK, verbose logging was enhanced to include a stack trace of where the ad fails to load. These message don't indicate a crash, but rather identify the unique source of the error. The following table provides common error logs, descriptions, and suggested actions for resolution:

Error log Description Suggested action(s) com.google.android.gms.ads.nonagon.render.cp: * The ad server did not return an ad or any mediation ad sources to request. For details of common onboarding issues of this type, see Resolve common onboarding issues. com.google.android.gms.ads.nonagon.render.e: * All ad sources in the mediation waterfall failed to load. The specific error represents the last ad source that failed. For details about logging each mediation ad source's failure reason, see Response Info. com.google.android.gms.ads.internal.util.*: Unable to obtain a JavascriptEngine. The ad request was unsuccessful because WebView is not allowed in privileged processes. The ad request was unsuccessful because of a slow network connection. Try improving your internet connection and try again. com.google.android.gms.ads.nonagon.load.a The ad request timed out. com.google.android.gms.ads.internal.util.*: Error while connecting to ad server: Unable to resolve host "pubads.g.doubleclick.net": No address associated with hostname The ad request was unsuccessful due to network connectivity. com.google.android.gms.ads.internal.util.*: Error building request URL: Cannot determine request type. Is your ad unit id correct? The ad unit ID did not match an expected regular expression. Check if your ad unit ID is correct. com.google.android.gms.ads.internal.render.bt: Unable to instantiate mediation adapter class. The Google Mobile Ads SDK can't find the mediation adapter. com.google.android.gms.internal.ads.*: Received error HTTP response code: 403 AdMob servers rejected the request. Try again later. If consistently reproducible, capture the request URL using ad inspector and contact support. Tip: To resolve errors originating from a mediation ad source, contact their support team for assistance.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-05-10 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-10 UTC."],[[["When an ad fails to load, a callback provides a `LoadAdError` object containing detailed information about the failure."],["The `LoadAdError` object provides the error domain, code, message, response info, and cause to help pinpoint the issue."],["You can find further explanations and potential solutions for errors in the MobileAds.ERROR_DOMAIN by referring to the provided help center article."],["Common error logs have been enhanced to include stack traces for easier debugging and resolution."],["Mediation ad source errors may require contacting the specific ad source's support team."]]],[]]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.3