AdInspectorError

class AdInspectorError : AdError


Error information about why the ad inspector failed.

Summary

Nested types

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

Constants supported by AdInspectorError.

Constants

const Int

Ad inspector cannot be opened because it is already open.

const Int

Ad inspector failed to load.

const Int

Ad inspector had an internal error.

const Int

Ad inspector cannot be opened because the device is not in test mode.

Public constructors

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

Creates an AdInspectorError.

Public functions

Int

Gets the error's code.

Inherited Constants

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

The undefined error domain.

Inherited functions

From com.google.android.gms.ads.AdError
String!

Returns a log friendly string version of this object.

Constants

ERROR_CODE_ALREADY_OPEN

const val ERROR_CODE_ALREADY_OPEN = 3: Int

Ad inspector cannot be opened because it is already open.

ERROR_CODE_FAILED_TO_LOAD

const val ERROR_CODE_FAILED_TO_LOAD = 1: Int

Ad inspector failed to load.

ERROR_CODE_INTERNAL_ERROR

const val ERROR_CODE_INTERNAL_ERROR = 0: Int

Ad inspector had an internal error.

ERROR_CODE_NOT_IN_TEST_MODE

const val ERROR_CODE_NOT_IN_TEST_MODE = 2: Int

Ad inspector cannot be opened because the device is not in test mode. See https://developers.google.com/admob/android/test-ads#enable_test_devices for more information.

Public constructors

AdInspectorError

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

Creates an AdInspectorError.

Parameters
@AdInspectorError.AdInspectorErrorCode code: Int

the error code.

message: String

a message detailing the error.

domain: String

the error domain.

Public functions

getCode

@AdInspectorError.AdInspectorErrorCode
fun getCode(): Int

Gets the error's code.