ConsentStatus

sealed interface ConsentStatus(source)

Consent status reported by Google's UMP. Mirrors the UMP consent status and is distinct from ConsentController.canRequestAdscanRequestAds may be true even when consent was not explicitly obtained (e.g., in non-EEA regions).

Inheritors

Types

Link copied to clipboard
data class Failed(val error: AdError) : ConsentStatus

Consent determination failed with an error.

Link copied to clipboard

Consent is not required in the user's region.

Link copied to clipboard
data object Obtained : ConsentStatus

Consent has been obtained from the user.

Link copied to clipboard
data object Required : ConsentStatus

Consent is required from the user.

Link copied to clipboard
data object Unknown : ConsentStatus

Consent status has not been determined yet.