Skip to content

Instantly share code, notes, and snippets.

@imelgrat
Last active August 23, 2017 21:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imelgrat/a6fab1d338b4aa31c089 to your computer and use it in GitHub Desktop.
Save imelgrat/a6fab1d338b4aa31c089 to your computer and use it in GitHub Desktop.
Create an AdMob ad using AdMob Plugin Pro. Full articlle at: http://imelgrat.me/phonegap/admob-effective-monetize-cordova-app/
function createSelectedBanner()
{
AdMob.createBanner( { adId:admobid.banner,
bgColor: '#XXYYZZ', overlap:false,
adSize: 'SMART_BANNER',// Available sizes are SMART_BANNER, BANNER,MEDIUM_RECTANGLE,FULL_BANNER,LEADERBOARD and SKYSCRAPER
position:8 //1 => Top Left, 2 => Top Center, 3 => Top Right, 4 => Left, 5 => Center, 6 => Right, 7 => Bottom Left, 8 => Bottom Center, 9 => Bottom Right
} );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment