जब कोई विज्ञापन लोड नहीं हो पाता, तो गड़बड़ी की जानकारी देने वाला कॉलबैक कॉल किया जाता है. इससे LoadAdError ऑब्जेक्ट मिलता है.
इनाम वाले विज्ञापन के लोड न होने पर, गड़बड़ी की जानकारी पाने के लिए, यहां दिया गया कोड स्निपेट इस्तेमाल करें:
onAdFailedToLoad:(ad,loadAdError){// Gets the domain from which the error came.Stringdomain=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.intcode=loadAdError.code;// A log friendly string summarizing the error.Stringmessage=loadAdError.message;// Get response information, which may include results of mediation requests.ResponseInfo?responseInfo=loadAdError.responseInfo;}
इस जानकारी का इस्तेमाल करके, यह ज़्यादा सटीक तरीके से पता लगाया जा सकता है कि विज्ञापन लोड क्यों नहीं हो पाया. खास तौर पर, iOS पर com.google.admob और Android पर com.google.android.gms.ads डोमेन में होने वाली गड़बड़ियों के बारे में ज़्यादा जानकारी पाने के लिए, सहायता केंद्र का यह लेख देखें. इसमें, GetMessage() के बारे में ज़्यादा जानकारी दी गई है. साथ ही, इसमें यह भी बताया गया है कि समस्या को हल करने के लिए कौनसी कार्रवाइयां की जा सकती हैं.
[[["समझने में आसान है","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"]],["आखिरी बार 2026-07-08 (UTC) को अपडेट किया गया."],[],["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"]]