# Google Mobile ads integration

<mark style="color:red;">**Warning:**</mark> we are not related for proper work of this plugin

### Installation <a href="#installation" id="installation"></a>

* Download the latest Admob release [here](https://github.com/googleads/googleads-mobile-unity/releases)
* Run and import downloaded package

  <figure><img src="https://docs.candy-smith.com/~gitbook/image?url=https%3A%2F%2F3431102767-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FGB7CK9gu3AIGgNgqIdcY%252Fuploads%252FdeesGQ1ICZRppMdj9CFA%252Fimage.png%3Falt%3Dmedia%26token%3D4991502c-fcc8-4e8c-b448-80efa9f6baf8&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=faec88ff&#x26;sv=2" alt=""><figcaption></figcaption></figure>

### Setup <a href="#setup" id="setup"></a>

1. Go to your Google Mobile Ads account [https://apps.admob.com](https://apps.admob.com/)
2. Add new app to monetise. [Help](https://support.google.com/admob/answer/2773509)
3. Copy app id and ads id and past it into [Ads settings](https://docs.candy-smith.com/bubble-shooter-toolkit/tutorials/ads-setup/ads-settings) to Admob Android or iOS profile
4. Put your app id to **Assets > Google Mobile Ads > Settings**

   <figure><img src="https://docs.candy-smith.com/~gitbook/image?url=https%3A%2F%2F3431102767-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FGB7CK9gu3AIGgNgqIdcY%252Fuploads%252Fh4a1eeSHuOXgOG30gdC2%252Fimage.png%3Falt%3Dmedia%26token%3D3ef3e659-9b64-4097-aa4d-27e85087dffa&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=d1913d1&#x26;sv=2" alt=""><figcaption></figcaption></figure>

&#x20;  5\. Put your ID to the ads settings of the game template<br>

<figure><img src="https://lh3.googleusercontent.com/41G08AF3MFV738lIzCzfWp9If8yleOwx7jrWNLafD2o4k89Y6kIMCiV-r20yI6zePXLaq-PzDdMQuOCxvTqbg1ZErTRaBQnvunrskx9lz00_x_jqY6_sUEoWdx2f8lZodPBNgPLaI4-_85EMK7FUOw" alt=""><figcaption></figcaption></figure>

[Google mobile ads (admob) support](https://github.com/googleads/googleads-mobile-unity/issues)&#x20;

## Troubleshooting

1. If you cannot see your ad use [Sample ad units](https://developers.google.com/admob/ios/test-ads#sample_ad_units) to test it\
   Sometimes it requires a couple of days to activate your new ad if you need more info please contact [Google support](https://admob.google.com/home/request-consult/)
2. Android building problem. Try this<br>

   <figure><img src="https://lh5.googleusercontent.com/aCr4Z-jedKCFfU2hLpUFuigcD36aandzmnJ7sV5ID-vLtvARrFgYSddllJWRY3nHvOf5GVuBTnoDQWs6Px2LaoHCWT9D4mqU082qAkuhptTFC5B6GEhUIibxfPt02SOrDb_a2fCbpf-6pJxGLgKA3g" alt=""><figcaption></figcaption></figure>
3. \
   Delete GoogleMobileAds and Plugins/Android/GoogleMobileAdsPlugin folders and reimport it

   <figure><img src="https://lh5.googleusercontent.com/ourjI08wg3GN6B-OvZeV-tjyQJrZxrRB6FHf9tU-vclY2dVB9glxdUdOx4irrvszlbtWP1ez6xSdTARnZGZGjEeml-2ZnO6vz5YFx9SV932rtxaowRZV-Le5Q_NdRzVtV2M7xdpAxpQ8XmJEhbwAQw" alt=""><figcaption></figcaption></figure>
4. If you have Gradle building problem try this\
   For Win  to clear the .gradle folder inside my %Userfolder%\
   For Mac you can run rm -rf $HOME/.gradle/caches/ in terminal
5. If you use Admob and Chartboost at the same time you should delete Plugins/Android/ChartboostSDK/android-support-v4.jar
6. If you able to see test ads but can’t see real ads
   1. Try to change package id.&#x20;
   2. Try to publish the game
   3. As far as you able to see test ads google says problem can be only in particular admob account, package or adUnit id<br>
7. If you have problems with building for android:

Make sure you haven’t support libraries twice, delete the libraries (marked with red line)<br>

<figure><img src="https://lh3.googleusercontent.com/SGxeKxxgKK5eSQ4ZGmJUJiTcS3lTJVtGUsm5PmOkqM1EKfePwF5j-p3y6I8WxsajJqVKe_UccU6jRJiXVlRhJbflwtIV2wqxILpUhM2pyvxjsVGFC9lOPrJMjohqvuYDEQVLaqZvt0herwkdVfcpkw" alt=""><figcaption></figcaption></figure>

<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.candy-smith.com/main/general-info/google-mobile-ads-integration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
