AdError

data class AdError(val code: String? = null, val message: String, val domain: String? = null, val responseInfo: AdResponseInfo? = null)(source)

Represents an error from the ad SDK. code carries the SDK's own error code string (e.g. AdErrorCode.CONSENT_REQUIRED) or a numeric GMA error code as a string. message is a human-readable description. domain identifies the source subsystem.

Constructors

Link copied to clipboard
constructor(code: String? = null, message: String, domain: String? = null, responseInfo: AdResponseInfo? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val code: String?

SDK error code (e.g., "consent_required", "sdk_not_ready") or numeric GMA code.

Link copied to clipboard

Error domain / source subsystem.

Link copied to clipboard

Human-readable error description.

Link copied to clipboard

Response info for the failed request.