我使用以下代码在活动的onCreate()中显示广告 由于我的活动显示的时间较长,我是否可以刷新广告?还是会自动刷新它们?我甚至需要改变它们,或者不应该打扰它吗?admob:正在更换广告
//only ask for test ad, in emulator , should remove this later in real device
AdRequest adRequest = new AdRequest();
//adRequest.addTestDevice(AdRequest.TEST_EMULATOR); // Emulator
//adRequest.addTestDevice("TEST_DEVICE_ID");
// Create the adView
adView = new AdView(this, AdSize.BANNER, "908908098098");
// Lookup your LinearLayout assuming it’s been given
// the attribute android:id="@+id/mainLayout"
LinearLayout layout = (LinearLayout)findViewById(R.id.adLayout);
// Add the adView to it
layout.addView(adView);
// Initiate a generic request to load it with an ad
adView.loadAd(adRequest);
感谢,是有刷新率应该是什么指南? – Ahmed
我在我的应用程序中使用了30个secons,但我注意到admob更频繁地刷新它。对我来说 - 这是很好的刷新率。 –
我在admob中的当前设置是在客户端代码中使用刷新率设置,客户端设置中没有刷新率..感谢您的帮助 – Ahmed