বিজ্ঞাপন লোড ত্রুটি
যখন একটি বিজ্ঞাপন লোড হতে ব্যর্থ হয়, একটি ব্যর্থ কলব্যাক বলা হয় যা একটি 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/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 = 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;
}
বিজ্ঞাপন লোড ব্যর্থ হওয়ার কারণ কী তা নির্ধারণ করতে এই তথ্যটি আরও সঠিকভাবে ব্যবহার করা যেতে পারে। বিশেষ করে, iOS-এ com.google.admob
এবং Android-এ com.google.android.gms.ads
ডোমেনের অধীনে ত্রুটির জন্য, GetMessage()
এই সহায়তা কেন্দ্র নিবন্ধে আরও বিশদ ব্যাখ্যা এবং সম্ভাব্য ক্রিয়াকলাপগুলির জন্য অনুসন্ধান করা যেতে পারে যা সমস্যা সমাধানের জন্য নেওয়া যেতে পারে।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-01-05 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-01-05 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["When an ad fails to load, a `LoadAdError` object provides detailed information about the failure through its properties."],["Developers can access error domain, code, message, and response info from the `LoadAdError` object to understand the reason for ad load failure."],["For errors originating from Google AdMob (specific domains on iOS and Android), the error message can be cross-referenced with a help center article for troubleshooting and resolution guidance."]]],["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"]]