不会出现smartWall广告airpush

时间:2013-10-24 08:51:39

标签: android airpush

没有出现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

    }
}

2 个答案:

答案 0 :(得分:0)

原因是airpush广告每天只加载3次。还有智能墙。 我想是这样只需将airpush代码添加到项目中并保留它,因为它会根据需要显示。最好还检查其他设备中的代码。 我建议使用Admob 广告和赚钱,而不是Airpush

答案 1 :(得分:0)

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