1

不出现smartWall广告airpush

import com.devmobby.dbel.R;
import com.fxxylrmjq.hnqqtdyue156508.AdCallbackListener;
import com.fxxylrmjq.hnqqtdyue156508.AirPlay;

import android.app.Activity;
import android.os.Bundle;

public class Test extends Activity implements AdCallbackListener{
    private AirPlay airPlay; //Declare AirPlay here

    @Override 
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        if(airPlay==null)
            airPlay=new AirPlay(this, null, true);

            airPlay.startSmartWallAd();
    }


    @Override
    public void onAdCached(AdType adType) {
         airPlay.showCachedAd(this, AdType.appwall);
    }

    @Override
    public void onAdError(String arg0) {
        // TODO Auto-generated method stub

    }

    @Override
    public void onSDKIntegrationError(String arg0) {
        // TODO Auto-generated method stub

    }

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

    }

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

    }

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

    }

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

    }
}
4

2 回答 2

0

缓存很混乱。使用 airPlay=new AirPlay(this, null, true false);

于 2013-12-25T23:44:34.440 回答
0

原因是airpush 广告每天只加载3 次。还有智能墙。我认为只需将 airpush 代码添加到项目中并保留它,因为它会按您的意愿显示。最好在其他设备上检查你的代码。我建议使用Admob 做广告和赚钱,而不是 Airpush

于 2013-10-24T09:04:30.547 回答