You can take a look at https://github.com/appfeel/admob-google-cordova. You can use the plugin with phonegap like this:
cordova plugin add com.admob.google
If you are using Phonegap Build, in your config.xml:
<gap:plugin name="com.admob.google" source="plugins.cordova.io" version="2.0.14"/>
Then you can use it as simple as (it also lets you create an optional (Tappx)[http://tappx.com account for backfill when there are no ads in your ads networks):
function onDeviceReady() {
document.removeEventListener('deviceready', onDeviceReady, false);
// Set AdMobAds options:
admob.setOptions({
publisherId: "ca-app-pub-XXXXXXXXXXXXXXXX/BBBBBBBBBB", // Required
interstitialAdId: "ca-app-pub-XXXXXXXXXXXXXXXX/IIIIIIIIII", // Optional
tappxIdiOs: "/XXXXXXXXX/Pub-XXXX-iOS-IIII", // Optional
tappxIdAndroid: "/XXXXXXXXX/Pub-XXXX-Android-AAAA", // Optional
tappxShare: 0.5 // Optional
});
// Start showing banners (atomatic when autoShowBanner is set to true)
admob.createBannerView();
// Request interstitial (will present automatically when autoShowInterstitial is set to true)
admob.requestInterstitial();
}
document.addEventListener("deviceready", onDeviceReady, false);