window.plugins.AdMob always undefined in ionic app

I'm trying to include the admob plugin from here:

https://github.com/floatinghotpot/cordova-admob-pro

I've tried everything, but whatever i try, the window.plugins.AdMob is always undefined. I checked it on my android device and also on the ios simulator (i know it's not working in the browser).

What i did: i added the plugin with the following command: cordova plugin add com.google.cordova.admob

Then i tried following the instructions from the plugin, but also used the code example from here: http://blog.nraboy.com/2014/06/using-admob-ionicframework/

But whatever i do, window.plugins.AdMob is always undefined.

I also tried loading it with a 3000ms timeout (because some answers say that the plugin is not initially ready and takes some time).

I really don't have a clue what to try next or what step i missed. anyone a suggestion? i also tried the google analytics plugin and followed the tutorial here (http://blog.nraboy.com/2014/06/using-google-analytics-ionicframework/) but again ,the "analytics" object is undefined. what do i miss here?

Instead of using window.plugins.AdMob, please directly use AdMob, or window.AdMob.

It's defined in the plugin.xml:

<js-module src="www/AdMob.js" name="AdMob">
    <clobbers target="window.AdMob" />
</js-module>

The example code you see, is for the old AdMob plugin.

Take a look at this https://github.com/Dharmoslap/ng-cordova. You can use AdMob Pro as well.