> For the complete documentation index, see [llms.txt](https://berk-birkan.gitbook.io/document-scanner/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://berk-birkan.gitbook.io/document-scanner/ads.md).

# Ads

![Config.swift file](https://2195353955-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M9YEFFAdLdxK7uP_raE%2F-M9YTaEKDiXI6sD1uRyF%2F-M9YTta0agy16VF7M5d-%2Fconfig.png?alt=media\&token=c60a436a-c03c-4d8e-b34f-06e93cebcf44)

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

```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

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

![info.plist file](https://2195353955-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M9YEFFAdLdxK7uP_raE%2F-M9YURahCBtZVfdP3v2o%2F-M9YUbyF0rFVv3Pmy_2I%2Finfoplist.png?alt=media\&token=41d81e41-b27d-4dfa-b1a2-907a0e83b440)

### 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

```swift
//Admob

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