Cordova Admob AppHost9603 Error

2019-07-11 06:25发布

问题:

I can't seem to get AdMob integrated with my Ionic Cordova app, I am receiving an AppHost9603 error and not seeing any ads. I am using the AdMobPro plugin. Here's what I've done:

  1. In Visual Studio I have added the AdMobPro plugin installed by providing the git path in config.xml->custom->git path
  2. I have added the file admob_simple.js in my js folder following the documentation
  3. I have added a reference in index.html to the js file like this

This is in index.html -

<script src="cordova.js"></script>
    <!-- your app's js -->
    <script src="js/admob_simple.js"></script>
    <script src="js/app.js"></script>
    <script src="js/controllers.js"></script>
    <script src="js/services.js"></script>
  1. I am running on my local machine, not an emulator. Error says APPHOST9603: Can’t load the ActiveX plug-in that has the class ID '{D27CDB6E-AE6D-11CF-96B8-444553540000}'. Apps can't load ActiveX controls. index.html

  2. And I see no ads

Can you help? And thank you

回答1:

I saw the same error.

I think that is because the Admob still doesn't support Windows 10(maybe only windows phone 8 supported), since I only saw the following in https://github.com/floatinghotpot/cordova-admob-pro