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

エラーコードを取得します。