# Android Admob-Free set ADMob-ID in capacitor

**URL:** <https://forum.ionicframework.com/t/android-admob-free-set-admob-id-in-capacitor/206583>\
**Category:** Capacitor\
**Created:** [March 16, 2021, 5:27am UTC](https://forum.ionicframework.com/t/android-admob-free-set-admob-id-in-capacitor/206583 "2021-03-16T05:27:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![elduderino15](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/elduderino15/32/105188_2.png) [@elduderino15](https://forum.ionicframework.com/u/elduderino15)\
**Post date:** [March 16, 2021, 5:27am UTC](https://forum.ionicframework.com/t/android-admob-free-set-admob-id-in-capacitor/206583/1 "2021-03-16T05:27:01Z")

</div>

I am not sure how to set the Admob ID for the capacitor version of the Admobp-free plugin.  
The readme of the package refers to `config.xml` / the Cordova way and `config.xml` is not in the cap project? (iOS works fine)

> **[ratson/cordova-plugin-admob-free](https://github.com/ratson/cordova-plugin-admob-free)**
>
> Cordova AdMob Plugin. Contribute to ratson/cordova-plugin-admob-free development by creating an account on GitHub.

I know this is a question about a 3rd party lib, but please, any help is welcome 🙂  
I’m bit confused overall that the capacitor documentation is so sparse whether I am betting on the right horse here.

The app is currently failing with, add output

```auto
03-15 22:39:04.536 28476 28476 E AndroidRuntime: FATAL EXCEPTION: main
03-15 22:39:04.536 28476 28476 E AndroidRuntime: Process: com.my.app, PID: 28476
03-15 22:39:04.536 28476 28476 E AndroidRuntime: java.lang.RuntimeException: Unable to get provider com.google.android.gms.ads.MobileAdsInitProvider: java.lang.IllegalStateException: 
03-15 22:39:04.536 28476 28476 E AndroidRuntime: 
03-15 22:39:04.536 28476 28476 E AndroidRuntime: ******************************************************************************
03-15 22:39:04.536 28476 28476 E AndroidRuntime: * Invalid application ID. Follow instructions here: https://goo.gl/fQ2neu to *
03-15 22:39:04.536 28476 28476 E AndroidRuntime: * find your app ID. *
03-15 22:39:04.536 28476 28476 E AndroidRuntime: ******************************************************************************

```

---

<div class="post-metadata">

**Author:** ![elduderino15](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/elduderino15/32/105188_2.png) [@elduderino15](https://forum.ionicframework.com/u/elduderino15)\
**Post date:** [March 16, 2021, 10:08pm UTC](https://forum.ionicframework.com/t/android-admob-free-set-admob-id-in-capacitor/206583/2 "2021-03-16T22:08:20Z")

</div>

Here is the solution

> <https://stackoverflow.com/questions/66649665/android-admob-free-set-admob-id-in-capacitor>

For some reason I keep getting better support on SO than here…
