I try lot of way but every guide or tutorial tell another way and code.Please can anyone sendme expamle file or full solution.I need.
Best Regards,
--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
For more info on PhoneGap or to download the code go to www.phonegap.com
To compile in the cloud, check out build.phonegap.com
Hi,
Please review your code.... The id should be in double quotes or use static variable that u have declared before...
Thanks,
Khushwant singh
var ad_units = { ios : { banner: 'ca-app-pub-xxx/xxx', interstitial: 'ca-app-pub-xxx/xxx' }, android : { banner: 'ca-app-pub-xxx/9375997553', interstitial: 'ca-app-pub-xxx/xxx' } }; // select the right Ad Id according to platform var admobid = ( /(android)/i.test(navigator.userAgent) ) ? ad_units.android : ad_units.ios;
Step 2: Create a banner with single line of javascript
// it will display smart banner at top center, using the default options if(AdMob) AdMob.createBanner( admobid.banner ); // or, show a banner at bottom if(AdMob) AdMob.createBanner( { adId:admobid.banner, position:AdMob.AD_POSITION.BOTTOM_CENTER, autoShow:true} );
Step 3: Prepare an interstitial, and show it when needed
// preppare and load ad resource in background, e.g. at begining of game level if(AdMob) AdMob.prepareInterstitial( {adId:admobid.interstitial, autoShow:false} ); // show the interstitial later, e.g. at end of game level if(AdMob) AdMob.showInterstitial();