java - How to show Admob interstitial in libGDX -


my app cant show interstitial. if run app test device id shows me interstitial test window google. without test device id shows me nothing. make same steps intergrate smart_banner. app shows smart_banner not interstitial. possible work wrong class... there exist interstitial class use adview class. have no idea did know tutorial including interstitial in libgdx ?

public class mainactivity extends androidapplication {  private adview adview; private adview fulladview; private relativelayout layout; private final string adcode = "xxx"; private final string fulladcode = "xxx";  @override public void oncreate(bundle savedinstancestate) {     ...      // create layout     layout = new relativelayout(this);      // admob view      fulladview = new adview(this);     fulladview.setadunitid(fulladcode);     fulladview.setadsize(adsize.medium_rectangle);      view gameview = initializeforview(new fpgame(new requesthandler(adview, fulladview)), cfg);     ...     adrequest fadrequest = new adrequest.builder().build();     fulladview.loadad(fadrequest);      fulladview.setadlistener(new adlistener(){         @override         public void onadloaded() {             super.onadloaded();              mainactivity.this.runonuithread(new runnable(){                  @override                 public void run() {                     layout.requestlayout();                 }              });         }     }); 

you should use interstitialad instead adview class
follow this tutorial


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -