[Solved] How to implement Admob in my Game in libGDX? [closed]


    layout = new RelativeLayout(this);
    adView = new AdView(this, AdSize.BANNER, adMObid );

    View gameView=initializeForView(new TalkingFriendApp(this), cfg);

    RelativeLayout.LayoutParams adParams = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT);
    adParams.addRule(RelativeLayout.ALIGN_PARENT_TOP);
    adParams.addRule(RelativeLayout.ALIGN_PARENT_LEFT);

    RelativeLayout.LayoutParams adParams1 = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT);
    adParams1.addRule(RelativeLayout.ALIGN_PARENT_TOP);
    adParams1.addRule(RelativeLayout.ALIGN_PARENT_LEFT);

    adView.loadAd(new AdRequest());

    layout.addView(gameView, adParams);
    layout.addView(adView, adParams1);

    setContentView(layout);

12

solved How to implement Admob in my Game in libGDX? [closed]