שגיאות בחירת מודעות
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
אם טעינת המודעה נכשלת, מתבצעת קריאה חוזרת של שגיאה שמספקת אובייקט LoadAdError
.
קטע הקוד הבא מאחזר מידע על שגיאות כשמודעה מתגמלת לא נטענת:
onAdFailedToLoad: (ad, loadAdError) {
// Gets the domain from which the error came.
String domain = loadAdError.domain;
// Gets the error code. See
// https://developers.google.com/ad-manager/mobile-ads-sdk/android/reference/com/google/android/gms/ads/AdRequest
// and https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Enums/GADErrorCode
// for a list of possible codes.
int code = loadAdError.code;
// A log friendly string summarizing the error.
String message = loadAdError.message;
// Get response information, which may include results of mediation requests.
ResponseInfo? responseInfo = loadAdError.responseInfo;
}
המידע הזה יכול לעזור לקבוע בצורה מדויקת יותר מה גרם לטעינת המודעה להיכשל. בפרט, אם מופיעות שגיאות בדומיין com.google.admob
ב-iOS או com.google.android.gms.ads
ב-Android, אפשר לעיין במאמר הזה במרכז העזרה כדי לקבל הסבר מפורט יותר על GetMessage()
ועל הפעולות שאפשר לבצע כדי לפתור את הבעיה.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-08-10 (שעון UTC).
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2025-08-10 (שעון UTC)."],[[["When an ad fails to load, a `LoadAdError` object is provided in the failure callback, containing details about the error."],["The `LoadAdError` object provides information such as the error domain, code, message, and response details for debugging purposes."],["For errors originating from Google AdMob (domains `com.google.admob` or `com.google.android.gms.ads`), further information and troubleshooting steps can be found in the AdMob help center article linked in the documentation."]]],["When an ad fails to load, a `LoadAdError` object is provided via a callback. This object contains error details, including the error's domain, a specific error code, a summarized message, and response information that could be related to mediation. For errors originating from `com.google.admob` (iOS) or `com.google.android.gms.ads` (Android), the message can be checked in a help center article for in-depth information and potential solutions. This information helps to pinpoint the cause of ad loading failure.\n"]]