# Configure AdMob

### How to configure AdMob for your iOS and Android app builds?

You can monetize your app by displaying Google AdMob ads.&#x20;

Follow the steps below to learn how to create an AdMob account, add an app to it, and configure your Android and iOS build to display ads.

{% embed url="<https://scribehow.com/shared/Configure_AdMob__K67CzmrKTDqU6nlGP4n_JA>" %}

#### Android Configuration

**1. Add Android app to AdMob account**

* &#x20;Visit the [Google AdMob page](https://admob.google.com/home/) and click on Signup.&#x20;
* While signing up, enter details such as your country, time zone, and billing currency. Agree to the terms and conditions in order to proceed.&#x20;
* You will be directed to the Google AdMob dashboard. Click on Get Started.
* You’ll be directed to a new page where you can select your app platform. Choose Android.&#x20;
* You also have to specify if your app is already live on the Google Play Store Store.&#x20;
* If you already have a live app, enter your app name and hit Search. Choose your app from the search results and select Continue.&#x20;
* AdMob will now show your app name and package name (Bundle Identifier). Select Add App when you are done.&#x20;

{% hint style="warning" %}
Check the User Metrics box if you wish to receive analytic reports from AdMob.&#x20;
{% endhint %}

* Select Done on the next screen.&#x20;

**2. Generate Admob app ID and ad unit ID**

* Go to Apps from the sidebar of your AdMob account.&#x20;
* Click on View all apps.
* Click on the copy icon beside your Android app to copy the AdMob ID.&#x20;

{% hint style="success" %}
An **Ad Unit ID** is a unique identifier assigned to each ad placement within your app by an ad network
{% endhint %}

Follow the steps below to create an ad unit and get an Ad Unit ID:

* Go to Apps on your AdMob account and select Ad units.
* Click on Get Started.
* You will next be asked to select your ad format. Select the type of ads you would like to configure.&#x20;
* Enter a name for your ad unit and select Create ad unit
* You will see your ad unit ID here. You can use it later while adding apps to your app screen.&#x20;

**3. Enter App ID on the Build Configuration screen**

* Login to your AppMySite account and go to your app dashboard.
* Navigate to [**Download**](https://app.appmysite.com/app/download) from the side menu.&#x20;
* Click on Build Android app.&#x20;
* In the features in the build section, click on Advertisements.
* You will be redirected the Admob configuration screen.
* Turn the Enable Android app ads toggle &#x20;
* In the AdMob App ID field, enter the AdMob App ID you generated earlier.&#x20;
* Hit Save and go back to the Android build configuration screen.&#x20;
* Click on Build App to generate your Android build.&#x20;

{% hint style="warning" %}
Once AdMob is configured in your Android build, you can choose where to display ads in the App Monetization screen.
{% endhint %}

Follow guides to configure your iOS and Android app builds for AdMob:

#### iOS Configuration

**1. Add your iOS app to your AdMob account**

* &#x20;Visit the [Google AdMob page](https://admob.google.com/home/) and click on Signup.&#x20;
* While signing up, enter details such as your country, time zone, and billing currency. Agree to the terms and conditions in order to proceed.&#x20;
* You will be directed to the Google AdMob dashboard. Click on Get Started.
* You’ll be directed to a new page where you can select your app platform. Choose iOS.&#x20;
* You also have to specify if your app is already live on the App Store.&#x20;
* If you already have a live app, enter your app name and hit Search. Choose your app from the search results and select Continue.&#x20;
* AdMob will now show your app name and package name (Bundle Identifier).  Select Add App when you are done.&#x20;

{% hint style="warning" %}
Check the User Metrics box if you wish to receive analytic reports from AdMob.
{% endhint %}

* Select Done on the next screen.&#x20;

**2. Generate Admob app ID and ad unit ID**

* Go to Apps from the sidebar of your AdMob account.&#x20;
* Click on View all apps.
* Click on the copy icon beside your iOS app to copy the AdMob ID.&#x20;

{% hint style="success" %}
An **Ad Unit ID** is a unique identifier assigned to each ad placement within your app by an ad network
{% endhint %}

Follow the steps below to create an ad unit and get an Ad Unit ID:

* Go to Apps on your AdMob account and select Ad units.
* Click on Get Started.
* You will next be asked to select your ad format.&#x20;
* Enter a name for your ad unit and select Create ad unit
* You will see your ad unit ID here. You can use it later while adding apps to your app screen.&#x20;

**3. Enter App ID on the Build Configuration screen**

* Login to your AppMySite account and go to your app dashboard.
* Navigate to [**Download**](https://app.appmysite.com/app/download/ios-build-settings).&#x20;
* Click on Build iOS app. &#x20;
* In the features in the build section, click on Advertisements.
* You will be redirected the Admob configuration screen.
* Turn the Enable iOS app ads toggle.
* In the AdMob App ID field, enter the AdMob App ID you generated earlier.&#x20;
* Hit Save and go back to the iOS build configuration screen.&#x20;
* Enter your AdMob App ID you generated earlier.&#x20;
* Click on Build app to generate your iOS build.&#x20;

{% hint style="success" %}
Once AdMob is configured in your iOS build, you can choose where to display ads in the App Monetization screen.
{% endhint %}
