It's difficult for me to explain my problem because my english is not good, hope you would understand.
This is my first try to make a mobile game, all done and I want to show ads by AdMob. I have tried some PhoneGap AdMob plugins such as admob-phonegap , cordova-admob-pro , etc,.. but all of them give "undefined" error on variable named "admob" (or "AdMob") .
There are the step I try with PhoneGap:
Install NodeJS.
Install Cordova.
Install PhoneGap.
Create app by command: phonegap test_app
cd test_app and phonegap platform add ios
Add plugin for my test_app by command: phonegap plugin add [plugin_name] (also try with cordova plugin add [plugin_name])
Write some html to test the AdMob plugin:
document.addEventListener("deviceready",function(){
try{
if(admob){alert("OK!");}
}catch(e){alert(e);}
},false);
8. Start test_app on my computer by command: phonegap serve.
Install PhoneGap Developer (http://app.phonegap.com/) App for my iPhone and connect with my computer, all work fine expect the "admob" variable is not defined !
I am using Windows 8 and there are not software be installed before (include Java,...)
Thank you for understanding and helping me.