InMobi 与 AdWhirl 3.0 集成

发布于 11-02 08:11 字数 347 浏览 8 评论 0原文


我正在创建应用程序以在底部显示广告。 我已满足完成广告的所有要求。

当我运行我的应用程序时,我在控制台中收到以下消息
InMobi:错误!必须实现 rootViewControllerForAd 方法。无法投放 InMobi 广告。 2011-04-19 10:35:42.177 真实比例高度准确[393:207] InMobi:错误!必须实现 rootViewControllerForAd 方法。无法投放 InMobi 广告。

我不知道有什么问题。
对于 InMobi 广告,我只在 viewController.m 中添加其 InMobiAdView.h 标头,否则我完美地完成了所有 Adwhirl 方法等。

hi
i am creating app to display ads at bottom.
i am done all the requirements to fulfill the ads.

when i am run my app i got the following message in my console
InMobi:Error! rootViewControllerForAd method must be implemented. Cannot serve InMobi Ads.
2011-04-19 10:35:42.177 Real Scale Highly Accurate[393:207] InMobi:Error! rootViewControllerForAd method must be implemented. Cannot serve InMobi Ads.

what's the problem i don't know.
for InMobi ads I just add only its InMobiAdView.h header in my viewController.m else i perfectly done all Adwhirl methods and etc.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

感悟人生的甜2024-11-09 08:11:40

发生这种情况是因为在 InMobiAdDelegate.h 中,此方法被标记为 @required。因此,要解决这个问题,请在 AdWhirlAdapterInMobi.m 添加

- (UIViewController *)rootViewControllerForAd {
   return [adWhirlDelegate viewControllerForPresentingModalView];
}

对我有用的方法。

This happens because in InMobiAdDelegate.h this method is marked as @required. So to solve this in AdWhirlAdapterInMobi.m add method

- (UIViewController *)rootViewControllerForAd {
   return [adWhirlDelegate viewControllerForPresentingModalView];
}

That worked for me.

哆兒滾2024-11-09 08:11:40

AdWhirl 3.0 的 iOS InMobi adpater 不是最新的,您需要使用这些:

iOS InMobi adpater for AdWhirl 3.0 is not up-to-date, you need to use these:

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文