Чтобы переводить контент на ваш предпочитаемый язык, Google использует технологии на основе искусственного интеллекта. Переводы от ИИ могут содержать ошибки.
Если объявление не загружается, вызывается обратный вызов ошибки, который предоставляет объект 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());}
Эта информация поможет точнее определить причину сбоя при загрузке объявления. В частности, для ошибок в домене com.google.admob на iOS и com.google.android.gms.ads на Android можно найти 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"]]