---
title: Initialize the SDK
description: Initialize the Google Mobile Ads SDK before loading ads.
---
> ## Documentation Index
> Fetch the complete documentation index at: https://react-native-google-mobile-ads.dev/llms.txt
> Use this file to discover all available pages before exploring further.

Before loading ads, have your app initialize the Google Mobile Ads SDK by calling `initialize` which initializes the SDK and returns a promise once initialization is complete (or after a 30-second timeout).
This needs to be done only once, ideally at app launch.

<Warning>
  Ads may be preloaded by the Mobile Ads SDK or mediation partner SDKs upon calling `initialize`. If
  you need to obtain consent from users in the European Economic Area (EEA), set any
  request-specific flags (such as tagForChildDirectedTreatment), or otherwise take action before
  loading ads, ensure you do so before initializing the Mobile Ads SDK.
</Warning>

```js
import mobileAds from 'react-native-google-mobile-ads';

mobileAds()
  .initialize()
  .then(adapterStatuses => {
    // Initialization complete!
  });
```

If you are using mediation, you may wish to wait until the promise is settled before loading ads, as this will ensure that all mediation adapters are initialized.

See [Configure outbound requests](/configuration#configure-outbound-requests) for request configuration that must be set
**before** `initialize`, and [Consent & privacy basics](/consent-basics) for gathering consent first.
