# MobileAdsInitProvider


```
public final class MobileAdsInitProvider extends InternalMobileAdsInitProvider
```

<br />

|---|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) ||||
| ↳ | [android.content.ContentProvider](https://developer.android.com/reference/android/content/ContentProvider.html) |||
|   | ↳ | [com.google.android.libraries.ads.mobile.sdk.internal.initialization.InternalMobileAdsInitProvider](https://developers.google.com/admob/android/next-gen/reference/com/google/android/libraries/ads/mobile/sdk/internal/initialization/InternalMobileAdsInitProvider) ||
|   |   | ↳ | [com.google.android.libraries.ads.mobile.sdk.MobileAdsInitProvider](https://developers.google.com/admob/android/next-gen/reference/com/google/android/libraries/ads/mobile/sdk/MobileAdsInitProvider) |

*** ** * ** ***

A `https://developer.android.com/reference/android/content/ContentProvider.html` that hooks into the application startup lifecycle to trigger early initialization of the Google Mobile Ads SDK.

Declaring this provider in your app's `AndroidManifest.xml` allows the Google Mobile Ads SDK to begin initializing essential components in the background as soon as the app process starts. This occurs before `https://developers.google.com/admob/android/next-gen/reference/com/google/android/libraries/ads/mobile/sdk/MobileAds#initialize(android.content.Context,com.google.android.libraries.ads.mobile.sdk.initialization.InitializationConfig)` is typically called, potentially reducing SDK initialization latency and improving the time to the first ad request.

To enable early initialization, add the following declaration to your `AndroidManifest.xml` file within the `<application>` element:

```
<provider
    android:name="com.google.android.libraries.ads.mobile.sdk.MobileAdsInitProvider"
    android:authorities="${applicationId}.mobileadsinitprovider"
    android:exported="false"
    android:initOrder="100" />
```

**Note:** `android:initOrder` is set to 100 so the provider kicks off early in the startup sequence.

## Summary

| ### Public constructors |
|---|
| `https://developers.google.com/admob/android/next-gen/reference/com/google/android/libraries/ads/mobile/sdk/MobileAdsInitProvider#MobileAdsInitProvider()()` |

### Inherited methods

From [android.content.ContentProvider](https://developer.android.com/reference/android/content/ContentProvider.html) `@https://developer.android.com/reference/androidx/annotation/NonNull.html ContentProviderResult[]` `https://developer.android.com/reference/android/content/ContentProvider.html#applyBatch(java.util.ArrayList)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/util/ArrayList.html<@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/ContentProviderOperation.html> p0)` `@https://developer.android.com/reference/androidx/annotation/NonNull.html ContentProviderResult[]` `https://developer.android.com/reference/android/content/ContentProvider.html#applyBatch(kotlin.String, java.util.ArrayList)(
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html p0,
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/util/ArrayList.html<@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/ContentProviderOperation.html> p1
)` `int` `https://developer.android.com/reference/android/content/ContentProvider.html#bulkInsert(android.net.Uri, kotlin.Array)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/net/Uri.html p0, @https://developer.android.com/reference/androidx/annotation/NonNull.html ContentValues[] p1)` `@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/os/Bundle.html` `https://developer.android.com/reference/android/content/ContentProvider.html#call(kotlin.String, kotlin.String, android.os.Bundle)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html p0, @https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/java/lang/String.html p1, @https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/os/Bundle.html p2)` `@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/os/Bundle.html` `https://developer.android.com/reference/android/content/ContentProvider.html#call(kotlin.String, kotlin.String, kotlin.String, android.os.Bundle)(
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html p0,
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html p1,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/java/lang/String.html p2,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/os/Bundle.html p3
)` `@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/net/Uri.html` `https://developer.android.com/reference/android/content/ContentProvider.html#canonicalize(android.net.Uri)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/net/Uri.html p0)` `int` `https://developer.android.com/reference/android/content/ContentProvider.html#checkUriPermission(android.net.Uri, kotlin.Int, kotlin.Int)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/net/Uri.html p0, int p1, int p2)` `final @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/ContentProvider.CallingIdentity.html` `https://developer.android.com/reference/android/content/ContentProvider.html#clearCallingIdentity()()` `int` `https://developer.android.com/reference/android/content/ContentProvider.html#delete(android.net.Uri, android.os.Bundle)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/net/Uri.html p0, @https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/os/Bundle.html p1)` `void` `https://developer.android.com/reference/android/content/ContentProvider.html#dump(java.io.FileDescriptor, java.io.PrintWriter, kotlin.Array)(
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/io/FileDescriptor.html p0,
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/io/PrintWriter.html p1,
@https://developer.android.com/reference/androidx/annotation/NonNull.html String[] p2
)` `final @https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/content/AttributionSource.html` `https://developer.android.com/reference/android/content/ContentProvider.html#getCallingAttributionSource()()` `final @https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/ContentProvider.html#getCallingAttributionTag()()` `final @https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/ContentProvider.html#getCallingPackage()()` `final @https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/ContentProvider.html#getCallingPackageUnchecked()()` `final @https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/content/Context.html` `https://developer.android.com/reference/android/content/ContentProvider.html#getContext()()` `final @https://developer.android.com/reference/androidx/annotation/Nullable.html PathPermission[]` `https://developer.android.com/reference/android/content/ContentProvider.html#getPathPermissions()()` `final @https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/ContentProvider.html#getReadPermission()()` `@https://developer.android.com/reference/androidx/annotation/Nullable.html String[]` `https://developer.android.com/reference/android/content/ContentProvider.html#getStreamTypes(android.net.Uri, kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/net/Uri.html p0, @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html p1)` `@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/ContentProvider.html#getTypeAnonymous(android.net.Uri)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/net/Uri.html p0)` `final @https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/ContentProvider.html#getWritePermission()()` `@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/net/Uri.html` `https://developer.android.com/reference/android/content/ContentProvider.html#insert(android.net.Uri, android.content.ContentValues, android.os.Bundle)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/net/Uri.html p0, @https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/content/ContentValues.html p1, @https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/os/Bundle.html p2)` `boolean` `https://developer.android.com/reference/android/content/ContentProvider.html#isTemporary()()` `void` `https://developer.android.com/reference/android/content/ContentProvider.html#onCallingPackageChanged()()` `void` `https://developer.android.com/reference/android/content/ContentProvider.html#onConfigurationChanged(android.content.res.Configuration)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/res/Configuration.html p0)` `void` `https://developer.android.com/reference/android/content/ContentProvider.html#onLowMemory()()` `void` `https://developer.android.com/reference/android/content/ContentProvider.html#onTrimMemory(kotlin.Int)(int p0)` `@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/content/res/AssetFileDescriptor.html` `https://developer.android.com/reference/android/content/ContentProvider.html#openAssetFile(android.net.Uri, kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/net/Uri.html p0, @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html p1)` `@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/content/res/AssetFileDescriptor.html` `https://developer.android.com/reference/android/content/ContentProvider.html#openAssetFile(android.net.Uri, kotlin.String, android.os.CancellationSignal)(
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/net/Uri.html p0,
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html p1,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/os/CancellationSignal.html p2
)` `@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/os/ParcelFileDescriptor.html` `https://developer.android.com/reference/android/content/ContentProvider.html#openFile(android.net.Uri, kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/net/Uri.html p0, @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html p1)` `@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/os/ParcelFileDescriptor.html` `https://developer.android.com/reference/android/content/ContentProvider.html#openFile(android.net.Uri, kotlin.String, android.os.CancellationSignal)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/net/Uri.html p0, @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html p1, @https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/os/CancellationSignal.html p2)` `final @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/os/ParcelFileDescriptor.html` `https://developer.android.com/reference/android/content/ContentProvider.html#openFileHelper(android.net.Uri, kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/net/Uri.html p0, @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html p1)` `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/os/ParcelFileDescriptor.html` `<T extends https://developer.android.com/reference/java/lang/Object.html> https://developer.android.com/reference/android/content/ContentProvider.html#openPipeHelper(android.net.Uri, kotlin.String, android.os.Bundle, T, android.content.ContentProvider.PipeDataWriter)(
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/net/Uri.html p0,
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html p1,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/os/Bundle.html p2,
@https://developer.android.com/reference/androidx/annotation/Nullable.html T p3,
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/ContentProvider.PipeDataWriter.html<@https://developer.android.com/reference/androidx/annotation/NonNull.html T> p4
)` `@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/content/res/AssetFileDescriptor.html` `https://developer.android.com/reference/android/content/ContentProvider.html#openTypedAssetFile(android.net.Uri, kotlin.String, android.os.Bundle)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/net/Uri.html p0, @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html p1, @https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/os/Bundle.html p2)` `@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/content/res/AssetFileDescriptor.html` `https://developer.android.com/reference/android/content/ContentProvider.html#openTypedAssetFile(android.net.Uri, kotlin.String, android.os.Bundle, android.os.CancellationSignal)(
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/net/Uri.html p0,
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html p1,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/os/Bundle.html p2,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/os/CancellationSignal.html p3
)` `@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/database/Cursor.html` `https://developer.android.com/reference/android/content/ContentProvider.html#query(android.net.Uri, kotlin.Array, android.os.Bundle, android.os.CancellationSignal)(
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/net/Uri.html p0,
@https://developer.android.com/reference/androidx/annotation/Nullable.html String[] p1,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/os/Bundle.html p2,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/os/CancellationSignal.html p3
)` `@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/database/Cursor.html` `https://developer.android.com/reference/android/content/ContentProvider.html#query(android.net.Uri, kotlin.Array, kotlin.String, kotlin.Array, kotlin.String, android.os.CancellationSignal)(
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/net/Uri.html p0,
@https://developer.android.com/reference/androidx/annotation/Nullable.html String[] p1,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/java/lang/String.html p2,
@https://developer.android.com/reference/androidx/annotation/Nullable.html String[] p3,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/java/lang/String.html p4,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/os/CancellationSignal.html p5
)` `boolean` `https://developer.android.com/reference/android/content/ContentProvider.html#refresh(android.net.Uri, android.os.Bundle, android.os.CancellationSignal)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/net/Uri.html p0, @https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/os/Bundle.html p1, @https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/os/CancellationSignal.html p2)` `final @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Context.html` `https://developer.android.com/reference/android/content/ContentProvider.html#requireContext()()` `final void` `https://developer.android.com/reference/android/content/ContentProvider.html#restoreCallingIdentity(android.content.ContentProvider.CallingIdentity)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/ContentProvider.CallingIdentity.html p0)` `final void` `https://developer.android.com/reference/android/content/ContentProvider.html#setPathPermissions(kotlin.Array)(@https://developer.android.com/reference/androidx/annotation/Nullable.html PathPermission[] p0)` `final void` `https://developer.android.com/reference/android/content/ContentProvider.html#setReadPermission(kotlin.String)(@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/java/lang/String.html p0)` `final void` `https://developer.android.com/reference/android/content/ContentProvider.html#setWritePermission(kotlin.String)(@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/java/lang/String.html p0)` `void` `https://developer.android.com/reference/android/content/ContentProvider.html#shutdown()()` `@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/net/Uri.html` `https://developer.android.com/reference/android/content/ContentProvider.html#uncanonicalize(android.net.Uri)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/net/Uri.html p0)` `int` `https://developer.android.com/reference/android/content/ContentProvider.html#update(android.net.Uri, android.content.ContentValues, android.os.Bundle)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/net/Uri.html p0, @https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/content/ContentValues.html p1, @https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/os/Bundle.html p2)` From [com.google.android.libraries.ads.mobile.sdk.internal.initialization.InternalMobileAdsInitProvider](https://developers.google.com/admob/android/next-gen/reference/com/google/android/libraries/ads/mobile/sdk/internal/initialization/InternalMobileAdsInitProvider) `void` `https://developers.google.com/admob/android/next-gen/reference/com/google/android/libraries/ads/mobile/sdk/internal/initialization/InternalMobileAdsInitProvider#attachInfo(android.content.Context,android.content.pm.ProviderInfo)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Context.html context, @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/pm/ProviderInfo.html info)` `int` `https://developers.google.com/admob/android/next-gen/reference/com/google/android/libraries/ads/mobile/sdk/internal/initialization/InternalMobileAdsInitProvider#delete(android.net.Uri,kotlin.String,kotlin.Array)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/net/Uri.html uri, https://developer.android.com/reference/java/lang/String.html selection, String[] selectionArgs)` `https://developer.android.com/reference/java/lang/String.html` `https://developers.google.com/admob/android/next-gen/reference/com/google/android/libraries/ads/mobile/sdk/internal/initialization/InternalMobileAdsInitProvider#getType(android.net.Uri)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/net/Uri.html uri)` `https://developer.android.com/reference/android/net/Uri.html` `https://developers.google.com/admob/android/next-gen/reference/com/google/android/libraries/ads/mobile/sdk/internal/initialization/InternalMobileAdsInitProvider#insert(android.net.Uri,android.content.ContentValues)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/net/Uri.html uri, https://developer.android.com/reference/android/content/ContentValues.html values)` `boolean` `https://developers.google.com/admob/android/next-gen/reference/com/google/android/libraries/ads/mobile/sdk/internal/initialization/InternalMobileAdsInitProvider#onCreate()()` `https://developer.android.com/reference/android/database/Cursor.html` `https://developers.google.com/admob/android/next-gen/reference/com/google/android/libraries/ads/mobile/sdk/internal/initialization/InternalMobileAdsInitProvider#query(android.net.Uri,kotlin.Array,kotlin.String,kotlin.Array,kotlin.String)(
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/net/Uri.html uri,
String[] projection,
https://developer.android.com/reference/java/lang/String.html selection,
String[] selectionArgs,
https://developer.android.com/reference/java/lang/String.html sortOrder
)` `int` `https://developers.google.com/admob/android/next-gen/reference/com/google/android/libraries/ads/mobile/sdk/internal/initialization/InternalMobileAdsInitProvider#update(android.net.Uri,android.content.ContentValues,kotlin.String,kotlin.Array)(
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/net/Uri.html uri,
https://developer.android.com/reference/android/content/ContentValues.html values,
https://developer.android.com/reference/java/lang/String.html selection,
String[] selectionArgs
)`

## Public constructors

### MobileAdsInitProvider

```
public MobileAdsInitProvider()
```