AdInspectorError

class AdInspectorError : AdError


廣告檢查器失敗的錯誤資訊。

摘要

巢狀類型

@Retention(value = SOURCE)
@IntDef(value = )
annotation AdInspectorError.AdInspectorErrorCode

AdInspectorError 支援的常數。

常數

const Int

廣告檢查器已開啟,因此無法再開啟。

const Int

廣告檢查器無法載入。

const Int

廣告檢查器發生內部錯誤。

const Int

裝置未處於測試模式,因此無法開啟廣告檢查器。

公用建構函式

AdInspectorError(
    @AdInspectorError.AdInspectorErrorCode code: Int,
    message: String,
    domain: String
)

建立 AdInspectorError

公開函式

Int

取得錯誤代碼。

繼承的常數

來自 com.google.android.gms.ads.AdError
const String!
UNDEFINED_DOMAIN = "undefined"

未定義的錯誤網域。

繼承的函式

來自 com.google.android.gms.ads.AdError
String!

傳回此物件的日誌友善字串版本。

常數

ERROR_CODE_ALREADY_OPEN

const val ERROR_CODE_ALREADY_OPEN = 3: Int

廣告檢查器已開啟,因此無法再開啟。

ERROR_CODE_FAILED_TO_LOAD

const val ERROR_CODE_FAILED_TO_LOAD = 1: Int

廣告檢查器無法載入。

ERROR_CODE_INTERNAL_ERROR

const val ERROR_CODE_INTERNAL_ERROR = 0: Int

廣告檢查器發生內部錯誤。

ERROR_CODE_NOT_IN_TEST_MODE

const val ERROR_CODE_NOT_IN_TEST_MODE = 2: Int

裝置未處於測試模式,因此無法開啟廣告檢查器。詳情請參閱 https://developers.google.com/admob/android/test-ads#enable_test_devices。

公用建構函式

AdInspectorError

AdInspectorError(
    @AdInspectorError.AdInspectorErrorCode code: Int,
    message: String,
    domain: String
)

建立 AdInspectorError

參數
@AdInspectorError.AdInspectorErrorCode code: Int

錯誤代碼。

message: String

詳細說明錯誤的訊息。

domain: String

錯誤網域。

公開函式

getCode

@AdInspectorError.AdInspectorErrorCode
fun getCode(): Int

取得錯誤代碼。