Search code examples
cordovaionic-frameworkadmobcordova-plugins

AdMob plugin add to cordova returns error


I'm trying to add the AdMob plugin for cordova in my ionic project but I'm getting the following error:

Error: Registry returned 404 for GET on https://registry.npmjs.org/com.rjfun.cordova.plugin.admob

The comand I use is:

cordova plugin add com.rjfun.cordova.plugin.admob

Any ideas why this happens?


Solution

  • You can try with

    cordova plugin add cordova-admob
    

    See instructions in this repo