I am trying to use the recently released Google admob SDK (GoogleAdMobAdsSdkAndroid-4.0.4).
Following:
LinearLayout layout = (LinearLayout)findViewById(R.id.my_layout); AdView adView = new AdView(this, AdSize.BANNER,"my_publisher_id"); layout.addView(adView); AdRequest request = new AdRequest(); request.setTesting(true); adView.loadAd(request);
works great in Activity. However, when I turn on Activity in TabActivity, AdView stops working and says:
WARN / Advertisements (17559): not enough space to display ads! Wants: <480, 75>, has: <448, 495>
Any idea how to enable AdView in TabActivity? Not necessarily in every Activity, I would be happy with AdView only on the top of the tab, but this also does not work.
Many tia
source share