0
因此,這裏是我的代碼,AdMob聯播廣告沒有顯示也不是原來的觀點
super.onCreate(savedInstanceState);
RollingThunderView a = new RollingThunderView(this);
setContentView(a);
adView = new AdView(this, AdSize.BANNER, "ca-app-pub-XXXXXXXXXXXXXXXX/XXXXXXXXXX");
AdRequest adRequest = new AdRequest();
adRequest.addTestDevice(AdRequest.TEST_EMULATOR);
adRequest.addTestDevice("TEST_DEVICE_ID");
adView.loadAd(new AdRequest());
android.view.ViewGroup.LayoutParams lp;
lp = a.getLayoutParams();
lp.width = a.getWidth();
lp.height = a.getHeight();
this.addContentView(adView, lp);
我想我用廣告覆蓋它原來的RollingThunderView。有什麼問題?