ManifestAdMobAppIdDataSource

class ManifestAdMobAppIdDataSource(context: Context, dispatchers: DispatcherProvider = StandardDispatchers()) : AdMobAppIdDataSource(source)

AdMobAppIdDataSource backed by the calling app's own PackageManager metadata.

The value is resolved once and cached, because the manifest cannot change while the process is alive. A missing or malformed entry is logged and reported as null.

Constructors

Link copied to clipboard
constructor(context: Context, dispatchers: DispatcherProvider = StandardDispatchers())

Functions

Link copied to clipboard
open suspend override fun adMobAppId(): String?

The host app's AdMob application id, or null when the manifest declares no usable value.