> For the complete documentation index, see [llms.txt](https://marouanesouah.gitbook.io/cryptoz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://marouanesouah.gitbook.io/cryptoz/customization/admob-configuration.md).

# Admob configuration

![](https://95637101-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LPldOR-zLunAcbQ7rlx%2F-LPuj4aT8lgjublkCesY%2F-LPulGgSTqXkc3KxIVyX%2FScreen%20Shot%202018-10-28%20at%2012.28.28.png?alt=media\&token=a43b5972-cd7a-48b3-9832-d74414a483eb)

To get your Admob works in this apps you must add your own **Admob banner,Interstitial & video ID'S** to the **admob-service** file for both IOS and ANDROID.&#x20;

You can create your own Admob ads account from [Google Admob.](https://www.google.com/admob/)

After you create your Admob account, open **config.xml** file and add your own **Admob ID**

```markup
 <plugin name="cordova-plugin-admob-free" spec="^0.21.0">
        <variable name="ADMOB_APP_ID" value="YOUR ADMOB ID" />
 </plugin>
```

![](https://95637101-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LPldOR-zLunAcbQ7rlx%2F-LPuj4aT8lgjublkCesY%2F-LPumVHhaFHxJRouvS-I%2FScreen%20Shot%202018-10-28%20at%2013.07.45.png?alt=media\&token=7bf160d4-12c5-486b-992d-eb6315f6cefc)

&#x20;Then navigate to **src/providers/admob/admob.ts.** and past your Admob information for both Android and IOS.

```javascript
if(this.platform.is('android')) {
  this.bannerId = '';//<-- Past your banner admob id  for android here
  this.InterstitialId = '';//<-- Past your Interstitial admob id for android here
  this.VideoID = "";//<-- Past your video admob id for android here
}
    
if(this.platform.is('ios')) {
  this.bannerId = "";//<-- Past your banner admob id  for ios here
  this.InterstitialId = "";//<-- Past your Interstitial admob id for ios here
  this.VideoID = "";//<-- Past your video admob id for ios here
}
```

![](https://95637101-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LPldOR-zLunAcbQ7rlx%2F-LPuj4aT8lgjublkCesY%2F-LPunuWog7CCxCsjYkUg%2FScreen%20Shot%202018-10-28%20at%2013.14.05.png?alt=media\&token=3bfa7567-26f9-401c-b4c8-2632b8c2fcd2)

If you want to use Admob in **testing mode** you can set the value of isTesting to true.

```javascript
public bannerConfig: AdMobFreeBannerConfig = {
      id:this.bannerId,
      autoShow: true,
      isTesting:false,//<- if you want just to test if admob is working , you can set the value to true
   };

public InterstitialConfig : AdMobFreeInterstitialConfig = {
 id:this.InterstitialId,
 autoShow:true,
 isTesting:false,//<- if you want just to test if admob is working , you can set the value to true
}

public RewardVideoConfig : AdMobFreeRewardVideoConfig = {
 id:this.VideoID,
 autoShow : true,
 isTesting:false,//<- if you want just to test if admob is working , you can set the value to true
}
```

![](https://95637101-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LPldOR-zLunAcbQ7rlx%2F-LPuj4aT8lgjublkCesY%2F-LPulGgUwak-MvtmShRB%2FScreen%20Shot%202018-10-28%20at%2012.28.15.png?alt=media\&token=e9686e85-7448-40d6-8f0d-acca3b558d4e)
