[英]Does not appear smartWall advertising airpush
Does not appear smartWall advertising airpush 不会出现smartWall广告空推
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
}
}
The reason is that the airpush ad loads only for 3 times a day. 原因是airpush广告每天仅加载3次。 and the smartwall as well.
以及smartwall。 I think so just add the airpush code to the project and leave it because it will display as you want.
我认为只需将airpush代码添加到项目中,然后将其保留,因为它将根据需要显示。 Better to check ur code in other device too.
最好也检查其他设备上的代码。 I suggest to use Admob to advertise and earn money, rather than Airpush
我建议使用Admob进行广告宣传并赚钱,而不是使用Airpush
Caching is messy. 缓存是混乱的。 Use airPlay=new AirPlay(this, null,
true
false); 使用airPlay = new AirPlay(this,null,
true
false);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.