Cordova Android AdMob position at top

This doesn't require adjustment from Admob's sample code. The important piece here to load the add before the Web View (super.loadUrl).
adView = new AdView(this, AdSize.SMART_BANNER, "xxxxxxxxxxxx"); 
      
LinearLayout layout = super.root;
layout.addView(adView);
AdRequest request = new AdRequest();
adView.loadAd(request);
super.loadUrl("file:///android_asset/www/index.html");
Posted by
Snippet Viewed 2180 times.

Share your Cordova code snippets:

  • Get some recognition & link back to your site.

 

Submit | Browse

Most Recent cordova snippets

Most Viewed