AdInspectorError

public final class AdInspectorError extends AdError


広告インスペクタが失敗した理由に関するエラー情報。

概要

ネストされた型

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

AdInspectorError でサポートされている定数。

定数

static final int

広告インスペクタはすでに開いているため、開くことができません。

static final int

広告インスペクタを読み込めませんでした。

static final int

広告検査ツールで内部エラーが発生しました。

static final int

デバイスがテストモードになっていないため、広告インスペクタを開くことができません。

パブリック コンストラクタ

AdInspectorError(
    @AdInspectorError.AdInspectorErrorCode int code,
    @NonNull String message,
    @NonNull String domain
)

AdInspectorError を作成します。

パブリック メソッド

int

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

継承される定数

com.google.android.gms.ads.AdError から
static final String
UNDEFINED_DOMAIN = "undefined"

未定義のエラードメイン。

継承されるフィールド

com.google.android.gms.ads.AdError から

継承されるメソッド

com.google.android.gms.ads.AdError から
@Nullable AdError

このエラーの原因を取得します。原因が存在しないか不明な場合は null を返します。

@NonNull String

エラーのドメインを取得します。

@NonNull String

エラーを説明するメッセージを取得します。

String

このオブジェクトのロギングに適した文字列バージョンを返します。

定数

ERROR_CODE_ALREADY_OPEN

public static final int ERROR_CODE_ALREADY_OPEN = 3

広告インスペクタはすでに開いているため、開くことができません。

ERROR_CODE_FAILED_TO_LOAD

public static final int ERROR_CODE_FAILED_TO_LOAD = 1

広告インスペクタを読み込めませんでした。

ERROR_CODE_INTERNAL_ERROR

public static final int ERROR_CODE_INTERNAL_ERROR = 0

広告検査ツールで内部エラーが発生しました。

ERROR_CODE_NOT_IN_TEST_MODE

public static final int ERROR_CODE_NOT_IN_TEST_MODE = 2

デバイスがテストモードになっていないため、広告インスペクタを開くことができません。詳しくは、https://developers.google.com/admob/android/test-ads#enable_test_devices をご覧ください。

パブリック コンストラクタ

AdInspectorError

public AdInspectorError(
    @AdInspectorError.AdInspectorErrorCode int code,
    @NonNull String message,
    @NonNull String domain
)

AdInspectorError を作成します。

パラメータ
@AdInspectorError.AdInspectorErrorCode int code

エラーコード。

@NonNull String message

エラーの詳細を示すメッセージ。

@NonNull String domain

エラードメイン。

パブリック メソッド

getCode

@AdInspectorError.AdInspectorErrorCode
public int getCode()

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