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 functions

open String

Public properties

open Int
@SerializedName(value = "Code")
code

The error code.

String
@SerializedName(value = "Domain")
domain

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

open String
@SerializedName(value = "Message")
message

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 functions

toString

open fun toString(): String

Public properties

code

@SerializedName(value = "Code")
open val codeInt

The error code.

domain

@SerializedName(value = "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

@SerializedName(value = "Message")
open val messageString

A message detailing the error.