1

我已经使用 Phonegap (Cordova 1.8.1) 构建了一个 iOS 应用程序,现在我正在尝试将 admob 广告添加到我的应用程序中。如您所知,AdMob 现在不允许选择“智能手机网络”,所以我可以简单地在 index.html 中实现 JavaScript 代码还是我需要使用 Admob iOS SDK?(或者只是使用 Google AdSense??)

笔记:

We are simplifying our suite of products by transitioning AdMob mobile web publishers to Google AdSense. Starting May 1, 2012 support for mobile web sites on AdMob will be discontinued and you must have a Google AdSense account to monetize mobile web sites. More information is available here.

4

1 回答 1

1

我相信根据他们的服务条款,您必须集成 iOS SDK,因为您仍在发布本机应用程序。

使用 iOS SDK 集成 AdMob 广告非常简单。在其中(void)webViewDidFinishLoad:(UIWebView *)theWebView,您可以添加一个 GADBannerView 并按照此处列出的集成说明进行操作。

要记住的一个重要警告是,您必须减小广告的大小UIWebView才能为广告腾出空间。确保MainViewController是您的 RootViewController。

于 2012-07-16T19:38:05.327 回答