在 iPhone 上通过 Mobclix 集成 iAd 和 AdMob
我有点困惑该怎么办。 我已经安装了 Moblicx SDK 4.4.4。 我在这里读到(http://blog.mobclix.com/2010/07/13/mobclix-ios-sdk-4-1-now-available/),实现 iAd 和 AdMob 不需要什么特别的,只需启用 iAd 和添加框架(我这样做了)并将 AdMob SDK 添加到我的项目中(也这样做了)。并对 Mobclix 函数进行所有调用。我也做了这一切。 但这很令人困惑,因为在我的仪表板中,当我启用这些网络时,它说“您负责在应用程序中实现逻辑来处理来自该网络的请求”。 所以现在..我的问题是..仅仅做到这一点就足够了,这样Mobclix就能处理其他所有事情了吗?
-(BOOL)adView:(MobclixAdView*)adView shouldHandleSuballocationRequest:(MCAdsSuballocationType)suballocationType
{
if (suballocationType == kMCAdsSuballocationAdMob) return YES;
if (suballocationType == kMCAdsSuballocationIAd) return YES;
return NO;
}
当我运行我的应用程序时,我看到测试添加,但我如何知道 iAds 和 AdMob 设置正确?
感谢您的帮助
I am a bit confused about what to do.
I have installed Moblicx SDK 4.4.4.
I read here (http://blog.mobclix.com/2010/07/13/mobclix-ios-sdk-4-1-now-available/) that nothing special is necessary to implement iAd and AdMob, just enable iAds and add the framework (I did that) and add the AdMob SDK to my projet (also did that). And make all the calls to Mobclix functions. I did all that too.
But it is confusing since in my dashboard when I enabled those networks it said "You are responsible for implementing the logic in your application to handle the requests from this network".
So now.. my question is.. is it enough just to do this, so the Mobclix will handle everything else?
-(BOOL)adView:(MobclixAdView*)adView shouldHandleSuballocationRequest:(MCAdsSuballocationType)suballocationType
{
if (suballocationType == kMCAdsSuballocationAdMob) return YES;
if (suballocationType == kMCAdsSuballocationIAd) return YES;
return NO;
}
When I run my app I see the test add, but how do I know the iAds and AdMob are setup correctly?
Thanks for any help
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好的,答案实际上就在您下载 Mobclix SDK 时的 Documentation 文件夹中。我只是复制了实际的 SDK 文件夹,并没有真正看到 ZIP 文件中的其他文件夹。不管怎样,看完文档后,你的做法是对的。但是您还缺少一位委托,那就是处理 Admob 广告发布商 ID。
另外要回答为什么您刚刚获得测试广告 - 您是否已根据您正在使用的广告尺寸正确地将 mobclix 仪表板中的测试广告设置设置为关闭?检查设置是否正确。另外,为了测试 admob,您可以将 admob 的分配设置为 100%。我刚刚这样做了,admob 通过 mobclix 在我的应用程序中显示良好。希望有帮助。
Ok, the answers are actually in the Documentation folder when you downloaded Mobclix SDK. I just copied the actual SDK folder and did not really see other folder in the ZIP file. Anyway, after reading the documentation, what you did is right. But you are missing one more delegate, and that is to handle admob ads publisher id.
Also to answer about why you are just getting test ads - have you properly set the Test Ads settings in mobclix dashboard to off for the ad size that you are using? Check the settings properly. Also, for testing admob, you can just put allocation for admob to 100%. I just did this and admob is showing fine in my app through mobclix. Hope that helps.