gstory0404 / ksad

快手广告Flutter版

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

显示“10002 找不到广告位”如何调试解决?

J-Yaleen opened this issue · comments

 //SDK初始化
            await KSAd.register(
              //androidId
              androidId: "1280600001",
              //iosId
              iosId: "1280600001",
              //是否显示日志log
              debug: true,
              //是否显示个性化推荐广告
              personalized: true,
            );
          await KSAd.loadInsertAd(
            androidId: "12806000004",
            //ios广告位id
            iosId: "12806000004",
          );
          //   await KSAd.showInsertAd();
          KSAdStream.initAdStream(
              //插屏广告
              insertCallBack: KSAdInsertCallBack(
            onShow: () {
              debugPrint("插屏广告显示");
            },
            onClick: () {
              debugPrint("插屏广告点击");
            },
            onFail: (message) {
              debugPrint("插屏广告失败 $message");
            },
            onClose: () {
              debugPrint("插屏广告关闭");
            },
            onReady: () async {
              debugPrint("插屏广告预加载准备就绪");
              await KSAd.showInsertAd();
            },
            onUnReady: () {
              debugPrint("插屏广告预加载未准备就绪");
            },
          ));

显示

W/KSAdSDK (21149): [KsAdInterstitialLoadManager]: loadInterstitialAd onError:code:10002__msg:找不到广告位
D/java.lang.Class(21149): 插屏广告加载失败 10002 找不到广告位
I/flutter (21149): 插屏广告失败 10002 找不到广告位

我的广告ID是快手联盟后台直接复制的,没复制错
不过iosId没有我乱填的,应该没关系吧,我是在安卓手机测试


然后我测试了一下激励视频的反倒可以,说明广告id没错,但是插屏广告就是一直提示错误

commented

隔半小时后尝试