com.google.ads.AdRequest

Here are the examples of the java api class com.google.ads.AdRequest taken from open source projects.

1. Main#onMain()

Project: LGame
Source File: Main.java
View license
@Override
public void onMain() {
    LSetting setting = new LSetting();
    setting.width = 320;
    setting.height = 480;
    setting.title = "catpuzzle";
    setting.showFPS = true;
    setting.listener = new LSetting.Listener() {

        @Override
        public void onResume() {
        // TODO Auto-generated method stub
        }

        @Override
        public void onPause() {
        // TODO Auto-generated method stub
        }

        @Override
        public void onExit() {
            if (adview != null) {
                adview.destroy();
            }
        }
    };
    register(setting, GameScreen.class);
    AdRequest request = new AdRequest();
    request.addTestDevice(AdRequest.TEST_EMULATOR);
    request.addTestDevice("E83D20734F72FB3108F104ABC0FFC738");
    adview = new AdView(this, AdSize.BANNER, "youid");
    addView(adview, Location.BOTTOM);
    adview.loadAd(request);
}