Reklam yükleme hataları
bookmark_borderbookmark
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Bir reklam yüklenemediğinde, bir hata geri çağırması çağrılır ve
LoadAdError
nesne algılandı.
Bir reklam yüklenemediğinde aşağıdaki kod snippet'i hata bilgilerini alır:
public void OnAdFailedToLoad(LoadAdError error)
{
// Gets the domain from which the error came.
string domain = error.GetDomain();
// Gets the error code. See
// https://developers.google.com/admob/android/reference/com/google/android/gms/ads/AdRequest
// and https://developers.google.com/admob/ios/api/reference/Enums/GADErrorCode
// for a list of possible codes.
int code = 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 message = error.GetMessage();
// Gets the cause of the error, if available.
AdError underlyingError = error.GetCause();
// All of this information is available via the error's toString() method.
Debug.Log("Load error string: " + error.ToString());
// Get response information, which may include results of mediation requests.
ResponseInfo responseInfo = error.GetResponseInfo();
Debug.Log("Response info: " + responseInfo.ToString());
}
Bu bilgiler, reklamın nedenini daha doğru şekilde belirlemek için kullanılabilir.
başarısız olabilir. Özellikle, şu tarihte com.google.admob
alan adı altındaki hatalar için:
iOS ve Android'de com.google.android.gms.ads
, GetMessage()
olabilir
bunu bu yardım merkezinde aradım
makalesini inceleyebilirsiniz.
açıklama ve sorunu çözmek için atılabilecek olası işlemler.
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-03-15 UTC.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2025-03-15 UTC."],[[["When an ad fails to load, a `LoadAdError` object is provided in a failure callback, containing information about the error."],["The `LoadAdError` object provides access to the error domain, code, message, underlying cause, and response information."],["Developers can use the error code and message, especially for errors from `com.google.admob` or `com.google.android.gms.ads`, to diagnose and resolve ad loading issues with help from the provided resources."],["The `LoadAdError` object's `ToString()` method and `GetResponseInfo().ToString()` method offer comprehensive overviews of the error and response details for debugging."]]],["When an ad fails to load, the `LoadAdError` object provides details via a callback. Key actions include retrieving the error's domain using `GetDomain()`, the error code with `GetCode()`, and a descriptive message via `GetMessage()`. The underlying cause is accessible with `GetCause()`. All data is also in the `ToString()` method. `GetResponseInfo()` offers insights, possibly regarding mediation. `GetMessage()` can be researched in a specific article to resolve the cause of the ad loading failure.\n"]]