UmpConsentRemoteDataSource
class UmpConsentRemoteDataSource(adMobAppIdDataSource: AdMobAppIdDataSource) : ConsentRemoteDataSource(source)
UMP-backed implementation of ConsentRemoteDataSource.
Every UMP callback ends the round trip once: with success, or with a ConsentException whose reason says which step failed. A form dismissed with a FormError is a failure, not a success.
Parameters
adMobAppIdDataSource
resolves the host app's AdMob application id. Passing a foreign id to UMP produces consent requests against a publisher account that does not own the running app, which is the failure mode that precedes the SDK's metrics-ping crash.
Functions
Link copied to clipboard
Updates the consent information, then shows the form: only when UMP requires it when showIfRequired is true, always otherwise. Returns once the round trip has ended. UMP needs its entry points called on the main thread.