I developed an Android App with Phonegap.
I know my connection with the my publisher id is working since I can
change the colours of the test Ad displayed but as soon as I turn test
to false the Ad doesn't show anymore.
Naturally I've added GoogleAdMobAdsSdk-4.1.1.jar to the libs map and a
reference in the manifest like this:
<activity android:name="com.google.ads.AdActivity"
android:label="@string/app_name" android:configChanges="orientation|
keyboardHidden"> <intent-filter> </intent-filter> </activity>
The code I've got posted on the index page where the ad is suppose to
show is the body onload:
<body onload="_admob.init()">
and on the location where I want the ad to show:
<script type="text/javascript">
var admob_vars = {
pubid: '[my_publicer_id]', // publisher id
test: false, // test mode, set to false if non-test mode
manual_mode: true
};
</script>
<script type="text/javascript" src="
http://mm.admob.com/static/iphone/
iadmob.js"></script>
<script type="text/javascript" charset="utf-8">
_admob.fetchAd(document.getElementById('admob_ad'));
</script>
<div id='admob_ad'></div>
Any change to this coding results in the ad not showing. Thanks for
any help.