MediationAdError

data class MediationAdError


Error information about why a mediation operation failed, as reported by the third party SDK.

Summary

Constants

const String

Default error domain name for the Google Mobile Ads SDK.

const String

The undefined error domain.

Public constructors

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

Public properties

open Int

The error code.

String

The domain of the error, either GOOGLE_MOBILE_ADS_DOMAIN, supplied by the third party SDK or UNDEFINED_DOMAIN.

open String

A message detailing the error.

Constants

GOOGLE_MOBILE_ADS_DOMAIN

const val GOOGLE_MOBILE_ADS_DOMAINString

Default error domain name for the Google Mobile Ads SDK.

UNDEFINED_DOMAIN

const val UNDEFINED_DOMAINString

The undefined error domain.

The Google Mobile Ads SDK returns this domain when converting error information from legacy mediation adapter callbacks that don't supply their own domain.

Public constructors

MediationAdError

MediationAdError(
    code: Int,
    message: String,
    domain: String = UNDEFINED_DOMAIN
)
Parameters
code: Int

The error code.

message: String

A message detailing the error.

domain: String = UNDEFINED_DOMAIN

The domain of the error, either GOOGLE_MOBILE_ADS_DOMAIN, supplied by the third party SDK or UNDEFINED_DOMAIN. If GOOGLE_MOBILE_ADS_DOMAIN, code will be one of LoadAdError.ErrorCode.

Public properties

code

open val codeInt

The error code.

domain

val domainString

The domain of the error, either GOOGLE_MOBILE_ADS_DOMAIN, supplied by the third party SDK or UNDEFINED_DOMAIN. If GOOGLE_MOBILE_ADS_DOMAIN, code will be one of LoadAdError.ErrorCode.

message

open val messageString

A message detailing the error.