我必须在Android APP中实施leadbolt banner。我使用最新的LeadBolt App SDK(6.0)。 从他们的pdf指令我做: 在OnCreate:
lb = new AdController(this,"MY ID",bannerListener);
lb.loadAd();
private AdListener bannerListener = new AdListener() {
@Override
public void onAdResumed() {
// TODO Auto-generated method stub
Logger.i("IAdv_LeadBolt_BannerMC", "onAdResumed");
}
@Override
public void onAdProgress() {
// TODO Auto-generated method stub
Logger.i("IAdv_LeadBolt_BannerMC", "onAdProgress");
}
@Override
public void onAdPaused() {
// TODO Auto-generated method stub
Logger.i("IAdv_LeadBolt_BannerMC", "onAdPaused");
}
@Override
public void onAdLoaded() {
// TODO Auto-generated method stub
Logger.i("IAdv_LeadBolt_BannerMC", "onAdLoaded");
}
@Override
public void onAdFailed() {
// TODO Auto-generated method stub
Logger.i("IAdv_LeadBolt_BannerMC", "onAdFailed "+lb.adShowStatus());
}
@Override
public void onAdCompleted() {
// TODO Auto-generated method stub
Logger.i("IAdv_LeadBolt_BannerMC", "onAdCompleted");
}
@Override
public void onAdClosed() {
// TODO Auto-generated method stub
Logger.i("IAdv_LeadBolt_BannerMC", "onAdClosed");
}
@Override
public void onAdClicked() {
// TODO Auto-generated method stub
Logger.i("IAdv_LeadBolt_BannerMC", "onAdClicked");
}
@Override
public void onAdAlreadyCompleted() {
// TODO Auto-generated method stub
Logger.i("IAdv_LeadBolt_BannerMC", "onAdAlreadyCompleted");
}
};
我也写
controller.setLayout((RelativeLayout) viewGroup);
显示它。
但我总是从OnAdFailed方法
中看到日志 @Override
public void onAdFailed() {
// TODO Auto-generated method stub
Logger.i("IAdv_LeadBolt_BannerMC", "onAdFailed "+lb.adShowStatus());
}
任何人都知道我做错了什么&