3

我必须在 Android APP 中实现引线横幅。我使用最新的 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());
        }

任何人都知道我做错了什么&

4

0 回答 0