APP
APP
First, to add Google Ads to your app, you need to have a Google AdMob account. You must create a Google AdMob account.
⇒ Google Adds Document : https://docs.page/invertase/react-native-google-mobile-ads ⇒ Google AdMob Account : https://admob.google.com/signup?sac=true
1. Setting up Google AdMob
1. Before you are able to display ads to your users, you must have a Google AdMob account. Under the "Apps" menu item, create or choose an existing Android/iOS app. Each app platform exposes a unique account ID which needs to be added to the project.
Attempting to build your app without configuring a valid App ID for this package will cause the app to crash on start or fail to build.
Under the "App settings" menu item, you can find the "App ID":
2. The app IDs for Android and iOS need to be inserted into your app's native code. For bare React Native projects, you can add the app IDs to the app.json file
Example:
3. The app IDs for Android and iOS need to be inserted into your app's native code. For bare React Native projects, you can add the app IDs to the AndroidManifest.xml file
4. After you complete all the setup, clear the cache and delete the node modules. Then restart the app by following the steps below.
2. For Android
Or you can run directly:
Last updated