AdError

class AdError


Error information about why an ad operation failed.

Summary

Constants

const String

Default error domain name for the Google Mobile Ads SDK.

const String

The undefined error domain.

Public constructors

AdError(code: Int, message: String, domain: String)
AdError(code: Int, message: String, domain: String, cause: AdError?)

Public functions

open operator Boolean
equals(other: Any?)

Constants

GOOGLE_MOBILE_ADS_DOMAIN

const val GOOGLE_MOBILE_ADS_DOMAIN: String

Default error domain name for the Google Mobile Ads SDK.

UNDEFINED_DOMAIN

const val UNDEFINED_DOMAIN: String

The undefined error domain.

The Google Mobile Ads SDK returns this domain when converting error information from legacy mediation adapter callbacks like MediationAdLoadCallback.onFailure to an AdError.

Public constructors

AdError

AdError(code: Int, message: String, domain: String)

AdError

AdError(code: Int, message: String, domain: String, cause: AdError? = null)

Public functions

equals

open operator fun equals(other: Any?): Boolean

Public properties

cause

val cause: AdError?

code

val code: Int

domain

val domain: String

message

val message: String