所以当问题建议我试图让全屏广告正常工作时,我会这样做,但他们确实会出现,但他们只会在那里停留4秒左右但后来消失了
我不做什么/做错了什么,我似乎无法找到adfonic的任何文档,所有的adobs似乎都太不同了,无法提供任何帮助。
public class AdPage extends Activity implements OnClickListener {
Button Close;
private final static String TAG = "Testing";
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.ad_layout);
final AdfonicView adView = (AdfonicView) findViewById(R.id.adfonicView);
adView.setAdListener(new AdListener() {
@Override
public void onReceivedAd() {
Log.d(TAG, "AdListener onReceivedAd()");
adView.showInterstitial();
}
@Override
public void onPresentScreen() {
Log.d(TAG, "AdListener onPresentScreen()");
}
@Override
public void onNoFill() {
Log.d(TAG, "AdListener onNoFill()");
}
@Override
public void onNetworkError() {
Log.d(TAG, "AdListener onNetworkError()");
}
@Override
public void onLeaveApplication() {
Log.d(TAG, "AdListener onLeaveApplication()");
}
@Override
public void onInvalidRequest() {
Log.d(TAG, "AdListener onInvalidRequest()");
}
@Override
public void onInternalError() {
Log.d(TAG, "AdListener onInternalError()");
}
@Override
public void onDismissScreen() {
Log.d(TAG, "AdListener onDismissScreen()");
}
@Override
public void onClick() {
Log.d(TAG, "AdListener onClick()");
}
});
这是布局
<com.adfonic.android.AdfonicView
xmlns:adfonic="http://schemas.android.com/apk/lib/com.adfonic.android"
android:id="@+id/adfonicView"
android:layout_width="match_parent"
android:layout_height="match_parent"
adfonic:adfonic_adslot_id="######"
adfonic:language="en"
adfonic:refresh_ad="true"
adfonic:refresh_time="30" />
答案 0 :(得分:1)
http://developer.adfonic.com/index.php/Android_SDK
Adfonic目前正在使用插页式广告,超时时间为4秒。
我相信SDK的下一次更新,他们正在添加设置插页式广告超时的功能。