# Admob installation throws an error

**URL:** <https://forum.ionicframework.com/t/admob-installation-throws-an-error/53446>\
**Category:** cordova\
**Created:** [May 31, 2016, 4:27am UTC](https://forum.ionicframework.com/t/admob-installation-throws-an-error/53446 "2016-05-31T04:27:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Grayda](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/grayda/32/97013_2.png) [@Grayda](https://forum.ionicframework.com/u/Grayda)\
**Post date:** [May 31, 2016, 4:27am UTC](https://forum.ionicframework.com/t/admob-installation-throws-an-error/53446/1 "2016-05-31T04:27:57Z")

</div>

Technically this doesn’t count as an ngCordova issue, but:

I’ve tried installing Admob to use with ngCordova, but installation of the plugin always fails, giving me this error:

> 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](https://registry.npmjs.org/com.google.admobsdk)

So of course that means that the original repo on npm has been moved or deleted, and there’s not much I can do about that, but, is there a workaround? Has the aforementioned plugin moved to a different name or location? A similar plugin that works with ngCordova?

I’m happy to update the docs if a solution is found, or just switch to a similar plugin if necessary, but it’d be good to know what’s going on, so others who run into this issue can get an answer also.

---

<div class="post-metadata">

**Author:** ![affakazmi](https://avatars.discourse-cdn.com/v4/letter/a/87869e/32.png) [@affakazmi](https://forum.ionicframework.com/u/affakazmi)\
**Post date:** [May 31, 2016, 6:13am UTC](https://forum.ionicframework.com/t/admob-installation-throws-an-error/53446/2 "2016-05-31T06:13:11Z")

</div>

facing same problem

 ![image](https://global.discourse-cdn.com/ionicframework/original/3X/9/6/967072224aec6918a80d50d7eb9bb6d5e34042dd.png)

---

<div class="post-metadata">

**Author:** ![affakazmi](https://avatars.discourse-cdn.com/v4/letter/a/87869e/32.png) [@affakazmi](https://forum.ionicframework.com/u/affakazmi)\
**Post date:** [May 31, 2016, 11:50am UTC](https://forum.ionicframework.com/t/admob-installation-throws-an-error/53446/3 "2016-05-31T11:50:37Z")

</div>

this plugin worked for me  
cordova plugin add cordova-plugin-admobpro

> **[floatinghotpot/cordova-admob-pro](https://github.com/floatinghotpot/cordova-admob-pro)**
>
> cordova-admob-pro - :fire: Cordova Plugin for Google AdMob, DFP, ADX. Easy monetization using mobile Ad, with single line of JavaScript. Compatible with Cordova CLI, Inoic, PhoneGap Build, etc.

---

<div class="post-metadata">

**Author:** ![Grayda](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/grayda/32/97013_2.png) [@Grayda](https://forum.ionicframework.com/u/Grayda)\
**Post date:** [May 31, 2016, 10:24pm UTC](https://forum.ionicframework.com/t/admob-installation-throws-an-error/53446/4 "2016-05-31T22:24:31Z")

</div>

I saw the pro plugin, but figured it would be the same, as they were made by the same person and I thought would have used the same repo.

Anyway, the plugin installed correctly. Haven’t tried it in my app yet (getting the surrounding code ready), but it installed. Thanks 😄
