संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
AdResult ऑब्जेक्ट, विज्ञापन लोड करने के दौरान हुई गड़बड़ियों का पता लगाने का तरीका उपलब्ध कराते हैं.
अगर कोई गड़बड़ी होती है, तो AdResult तरीके से is_successful() का जवाब 'गलत' मिलेगा.
ऐसी स्थितियों में, AdResult तरीके ad_error() को लागू करने पर, गड़बड़ी से जुड़ी जानकारी वाला AdError ऑब्जेक्ट मिलेगा.
यहां एक कोड स्निपेट दिया गया है. इससे पता चलता है कि विज्ञापन लोड न होने पर कौनसी जानकारी उपलब्ध होती है:
firebase::Future<firebase::gma::AdResult>load_ad_future=ad_view->LoadAd(request);// In a game loop, monitor the load ad statusif(load_ad_future.status()==firebase::kFutureStatusComplete){constfirebase::gma::AdResult*ad_result=load_ad_future.result();if(!ad_result.is_successful()){// There was an error loading the ad.constAdError&ad_error=ad_result.ad_error();firebase::gma::AdErrorCodecode=ad_error.code();std::stringdomain=ad_error.domain();std::stringmessage=ad_error.message();constfirebase::gma::ResponseInforesponse_info=ad_error.response_info();printf("Received error with domain: %s, code: %d, message: %s and response info: %s\n”,domain.c_str(),message.c_str(),response_info.ToString().c_str());}}
इस जानकारी का इस्तेमाल करके, यह बेहतर तरीके से पता लगाया जा सकता है कि विज्ञापन लोड न होने की वजह क्या थी. खास तौर पर, iOS पर com.google.admob और Android पर com.google.android.gms.ads डोमेन में आने वाली गड़बड़ियों के बारे में ज़्यादा जानकारी पाने के लिए, सहायता केंद्र का यह लेख पढ़ें. इसमें गड़बड़ी के बारे में ज़्यादा जानकारी दी गई है. साथ ही, इसे ठीक करने के लिए की जा सकने वाली कार्रवाइयों के बारे में भी बताया गया है.
[[["समझने में आसान है","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-07-16 (UTC) को अपडेट किया गया."],[[["The Google Mobile Ads C++ SDK is deprecated and will be end-of-maintenance on June 17, 2025, with iOS and Android SDKs recommended as alternatives."],["Developers should use `AdResult` objects, specifically the `is_successful()` and `ad_error()` methods, to detect and diagnose ad loading failures."],["`AdError` objects provide detailed error information, including domain, code, and message, for troubleshooting failed ad loads."],["Error messages can be cross-referenced with the Google AdMob help center to identify the root cause and potential solutions."]]],["The Google Mobile Ads C++ SDK is deprecated as of June 17, 2024, and will reach End-of-Maintenance on June 17, 2025. AdMob iOS and Android SDKs are recommended alternatives. `AdResult` objects detect failed ad loads; `is_successful()` indicates success, and `ad_error()` retrieves an `AdError` object for failures. The `AdError` includes error domain, code, message, and response info, which can be used to troubleshoot. Refer to the Google help center for specific error resolutions.\n"]]