# AdMob Guide

### Creating an AdMob Account

If you don't have an AdMob account, go to [AdMob](https://apps.admob.com/signup) to sign up.

You are set if you are navigated to the screen below

<div align="left"><img src="https://1589143646-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M3AlXnP5kHENnvBXdKq%2F-MIjiUgYzhlM8fLPr3hF%2F-MIotnhVUWNLIVA4Qcmk%2Fimage.png?alt=media&#x26;token=1f811b84-4b92-4e46-8abf-9dd7bf31e2cc" alt="AdMob page"></div>

## Creating an AdMob unit

An ad unit is one or more Google ads displayed using one piece of the AdSense ad code. You need to generate an Ad Unit to show ads inside your application.

### Create an Ad Unit inside your AdMob account

&#x20;Under your AdMob console, click on `Apps` and click on `Add App`. Follow the steps to add the app.

Enter an app name, select `Android`, and click `Add`

<div align="left"><img src="https://1589143646-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M3AlXnP5kHENnvBXdKq%2F-MIjiUgYzhlM8fLPr3hF%2F-MIovr8qflZmHariF7kE%2Fimage.png?alt=media&#x26;token=e2e1a647-e4ba-453d-a769-1c6c339fb057" alt="Adding an app not on the Play Store"></div>

On the next page, click `Next: Create Add Unit`

<div align="left"><img src="https://1589143646-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M3AlXnP5kHENnvBXdKq%2F-MIjiUgYzhlM8fLPr3hF%2F-MIowg7yyOglq2Q--H4G%2Fimage.png?alt=media&#x26;token=8f32271b-ca6b-42f0-a166-4348cde3db60" alt=""></div>

{% hint style="info" %}
You don't need the App ID for Sketchware
{% endhint %}

On the next page, click either `Banner` or `Interstitial`

![](https://1589143646-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M3AlXnP5kHENnvBXdKq%2F-MIjiUgYzhlM8fLPr3hF%2F-MIoxRSiyPVxtJvVfVWR%2Fimage.png?alt=media\&token=549a9f4a-89f0-447b-bf50-02ebf275c064)

{% hint style="success" %}
You can specify ad type (Text, Image, and rich media or Video), and more under `Advanced Settings`.
{% endhint %}

Enter an ad unit name, and click `Create Ad Unit`

<div align="left"><img src="https://1589143646-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M3AlXnP5kHENnvBXdKq%2F-MIjiUgYzhlM8fLPr3hF%2F-MIoxKdHrZJEvJWOMD4c%2Fimage.png?alt=media&#x26;token=0937c834-beb0-4648-ac60-351e2ee80d83" alt=""></div>

Ignore the steps on the next screen and copy the ad unit ID (the one at the bottom). You will need it for the next step.

<div align="left"><img src="https://1589143646-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M3AlXnP5kHENnvBXdKq%2F-MIjiUgYzhlM8fLPr3hF%2F-MIozZF80DXPA6CEpDEq%2Fimage.png?alt=media&#x26;token=baa378b8-48d3-4b6b-9dac-54a6192b7e98" alt="Ad unit sucessfully created"></div>

### Add Ad Unit ID inside Sketchware

[Navigate to the Library Manager](https://sketchdocs.sketchub.in/library#library), and select AdMob.

#### Add Ad Units

Tap `Add Manually`

Enter the `Ad Unit Name` you used to create the ad unit in AdMob, and paste the `Ad Unit ID` you copied earlier, then click `Add`.

<div align="left"><img src="https://1589143646-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M3AlXnP5kHENnvBXdKq%2F-MIjiUgYzhlM8fLPr3hF%2F-MIp3FmUF0XhdAV5nmHq%2Fimage.png?alt=media&#x26;token=d8756f43-238c-43f3-a713-a1b1cc3af196" alt="Adding the Ad Unit"></div>

Repeat until you have both Banner and Interstitial ad units then click `Next`.

#### Assign Ad Unit IDs

Click on `edit` next to Banner AD and select the Ad Unit you added in the last step that will be used for Banner Ads.&#x20;

![](https://1589143646-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M3AlXnP5kHENnvBXdKq%2F-MIjiUgYzhlM8fLPr3hF%2F-MIp4VPE3fRF1fyEgeOL%2Fimage.png?alt=media\&token=942a3b64-5638-492e-85ce-18265a19f34c)

Repeat until an ad unit is assigned for Interstitial. It should look similar to this:

![](https://1589143646-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M3AlXnP5kHENnvBXdKq%2F-MIjiUgYzhlM8fLPr3hF%2F-MIp58SAaCKIzNrCypMs%2Fimage.png?alt=media\&token=dfb772e8-6b2b-48fc-95ae-dca178f43ae8)

#### Configure Test Devices

Click on `Add Test Devices` and click `Add`. Click `Next`.

![](https://1589143646-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M3AlXnP5kHENnvBXdKq%2F-MIjiUgYzhlM8fLPr3hF%2F-MIp5NaaIy4vf7SowxdS%2Fimage.png?alt=media\&token=957f057d-18fe-4759-b5ac-dd0330c15e1b)

#### Review Information

Check that all the information is correct, then click `Save`.

![](https://1589143646-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M3AlXnP5kHENnvBXdKq%2F-MIjiUgYzhlM8fLPr3hF%2F-MIp5r5cHlHPY3-mvato%2Fimage.png?alt=media\&token=761906f3-23dc-4875-90a3-fd797e703fed)

Congratulations, you have successfully added ads to your app.

{% hint style="warning" %}
Ads will only show if the app is signed, and it may take over a week for real ads to show.

For more information, see [this blog post](https://blog.sketchub.in/2020/03/why-my-admob-ads-are-not-showing-in.html).&#x20;
{% endhint %}
