【问题标题】:Chartboost Interstitial shifted UpChartboost 插页式广告上移
【发布时间】:2014-05-01 14:54:22
【问题描述】:

我在 Cocos2d-X iPhone 游戏中使用了 Chartboost 广告。

当 revmob 横幅打开时,Chartboost 全屏广告会向上移动。无法关闭。

截图如下:

代码:

   [[RevMobAds session] showBanner];
   [[Chartboost sharedChartboost] showInterstitial];

如何解决这个问题?

【问题讨论】:

    标签: ios cocos2d-x chartboost


    【解决方案1】:

    在显示视图时,SDK 似乎存在冲突。由于我不太了解 RevMob 如何显示他们的视图,因此我建议不要同时显示两者。相反,请执行以下操作:

    当用户加载菜单屏幕时,调用 Chartboost 插页式代码:

    [[Chartboost sharedChartboost] showInterstitial:CBLocationMainMenu];

    然后,通过实现 didCloseInterstitial 委托方法,在 Chartboost 插页式广告关闭时调用 RevMob 代码:

    - (void)didCloseInterstitial:(CBLocation)location { if (location == CBLocationMainMenu) { [[RevMobAds session] showBanner]; } }

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多