Then I built the app following Ionic’s documentation. However, the test banner app is not appearing at all in the mobile device. What is possibly going wrong?
I am getting this because of the constructor parameter:
'AdMob' refers to a value, but is being used as a type here.ts(2749)
Should I just use typeof before the constructor parameter?
Also, when I am trying to add “AdMob” to the providers in app.module, I am getting:
Type 'AdMobOriginal' is not assignable to type 'Provider'.
Type 'AdMobOriginal' is missing the following properties from type 'any[]': length, pop, push, concat, and 26 more.
But, what is the problem if I use Admob Free? I remember using it on an app in January to try it out and it worked fine. Same .apk I installed today and the test ad is not even coming (I don’t know about production one).
I don’t know. I only see that both Plugins are from the same Developer, who said using ** admob-plus** is preferred. The latest Commit to the Free was May 2019 and the latest to plus was 9 days ago, so it is better maintained.
Thanks to both of you for taking the time to reply. My problem was happening because of some plugin corruption I guess. Once I created the new project and installed Admob Free, it worked as expected.
I have a small question. I removed the “isTesting” property and added my banner-ad id. Now, after I built the apk, I installed it on my phone (not yet uploaded to the play store) and it still shows a test ad. Is this normal behaviour until I put it on the Play Store?