# Ads

![Config.swift](https://1457591251-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M9YkN0hj4wJ-rNGDfi8%2F-M9_35MdAEERqxty-Jiw%2F-M9_3FddqDTNygcq9yLS%2Fconfig.png?alt=media\&token=d69071c9-9120-4e25-88f5-9ff586437e47)

Configure adsense, In this app you must replace your ID with your own data, at file **Config.swift**

```
var ADMOB_REWARD = "ca-app-pub-6041813634434181/7847720450" // Admob reward ads id
```

​

Based on this article <https://developers.google.com/admob/ios/quick-start> new admob required admob app id

```
GADApplicationIdentifier=ca-app-pub-8915706349520340~2788515259
```

![](https://gblobscdn.gitbook.com/assets%2F-M9YEFFAdLdxK7uP_raE%2F-M9YURahCBtZVfdP3v2o%2F-M9YUbyF0rFVv3Pmy_2I%2Finfoplist.png?alt=media\&token=41d81e41-b27d-4dfa-b1a2-907a0e83b440)info.plist file

### Disable  <a href="#disable" id="disable"></a>

new we make easy way to disable or enable adsense in the app, you only need to set boolean value with TRUE or FALSE

```
//Admob​var IS_AD_ENABLE = true //set it false if you dont want display ads
```

[\
](https://berk-birkan.gitbook.io/document-scanner/change-appicon)
