Admob plugin not working


#1

i am trying to install admob plugin in ng-cordova documentation . the following error i am getting.

sritejas-MacBook-Pro:adsample sriteja$ cordova plugin add https://github.com/floatinghotpot/cordova-plugin-admob.git
Fetching plugin “https://github.com/floatinghotpot/cordova-plugin-admob.git” via git clone
Repository “https://github.com/floatinghotpot/cordova-plugin-admob.git” checked out to git ref “master”.
cp: dest file already exists: /Users/sriteja/desktop/adsample/plugins/cordova-plugin-admob/LICENSE

cp: dest file already exists: /Users/sriteja/desktop/adsample/plugins/cordova-plugin-admob/LICENSE
cp: dest file already exists: /Users/sriteja/desktop/adsample/plugins/cordova-plugin-admob/README.md

skipping existing file: admob-android.jpg
skipping existing file: admob-ipad-landscape.jpg
skipping existing file: admob-iphone.jpg
skipping existing file: pro_vs_basic.png
cp: dest file already exists: /Users/sriteja/desktop/adsample/plugins/cordova-plugin-admob/LICENSE
cp: dest file already exists: /Users/sriteja/desktop/adsample/plugins/cordova-plugin-admob/README.md
cp: dest file already exists: /Users/sriteja/desktop/adsample/plugins/cordova-plugin-admob/package.json

cp: dest file already exists: /Users/sriteja/desktop/adsample/plugins/cordova-plugin-admob/LICENSE
cp: dest file already exists: /Users/sriteja/desktop/adsample/plugins/cordova-plugin-admob/README.md
cp: dest file already exists: /Users/sriteja/desktop/adsample/plugins/cordova-plugin-admob/package.json
cp: dest file already exists: /Users/sriteja/desktop/adsample/plugins/cordova-plugin-admob/plugin.xml

skipping existing file: AdMob.java
skipping existing file: CDVAdMob.h
skipping existing file: CDVAdMob.m
skipping existing file: AdMob.cs
skipping existing file: index.html
skipping existing file: AdMob.js
Installing “cordova-plugin-admob” for ios
Fetching plugin “com.google.admobsdk” via npm
Failed to install ‘cordova-plugin-admob’:CordovaError: Failed to fetch plugin com.google.admobsdk via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: Registry returned 404 for GET on https://registry.npmjs.org/com.google.admobsdk
at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/fetch.js:170:33
at _rejected (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:797:24)
at /usr/local/lib/node_modules/cordova/node_modules/q/q.js:823:30
at Promise.when (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:1035:31)
at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:741:41)
at /usr/local/lib/node_modules/cordova/node_modules/q/q.js:557:44
at flush (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:108:17)
at nextTickCallbackWith0Args (node.js:433:9)
at process._tickCallback (node.js:362:13)
Error: Failed to fetch plugin com.google.admobsdk via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: Registry returned 404 for GET on https://registry.npmjs.org/com.google.admobsdk


#2

Make sure you are using cordova 5.3.3.


#3

i installed 6.0 but still getting same error


#4

I´m using 6.1.1 and still getting same error.


#5

Yes , still the problem is there in the plugin . I didn’t found any solution. If you got solution please post