বিজ্ঞাপন লোড না হলে, একটি ব্যর্থ কলব্যাক কল করা হয় যা একটি
LoadAdError অবজেক্ট প্রদান করে।
কোনও বিজ্ঞাপন লোড না হলে, নিম্নলিখিত কোড স্নিপেট সমস্যার তথ্য ফিরিয়ে আনে:
publicvoidOnAdFailedToLoad(LoadAdErrorerror){// Gets the domain from which the error came.stringdomain=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.intcode=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.stringmessage=error.GetMessage();// Gets the cause of the error, if available.AdErrorunderlyingError=error.GetCause();// All of this information is available through the error's toString() method.Debug.Log("Load error string: "+error.ToString());// Get response information, which may include results of mediation requests.ResponseInforesponseInfo=error.GetResponseInfo();Debug.Log("Response info: "+responseInfo.ToString());}
বিজ্ঞাপন লোড হতে না পারার কারণ আরও নির্ভুলভাবে নির্ধারণ করতে এই তথ্য ব্যবহার করা যেতে পারে। বিশেষ করে, 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-11-10 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],["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"]]