iPhone景观游戏中的Mo pub + iAds [英] Mo pub + iAds in iPhone landscape game

查看:145
本文介绍了iPhone景观游戏中的Mo pub + iAds的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在,我对在iPhone游戏中使用MoPub + iAds有一个要求.

Now I got one requirement to use MoPub+iAds in iPhone game.

我使用mo pub sdk并像这样初始化视图

I used mo pub sdk and initialized view like this

MPAdView *moPubAdView =  [[MPAdView alloc] initWithAdUnitId:MOPUB_ADS_ACCOUNT_ID size:MOPUB_BANNER_SIZE];

但这显示大小为320x50.如何为此视图启用iAd?现在,它仅显示Mo pub广告.

But this displays 320x50 in size. How to enable iAd for this view? Now it is displaying only mo pub ads.

推荐答案

如果要使用细长的iAd标语,则必须在size参数中传递正确的CGSize.在这种情况下,CGSizeMake(480,32). 要为您的应用启用iAd,请访问itunesconnect.apple.com并添加具有捆绑软件ID的应用.之后,找到显示"iAd网络设置"的按钮,然后启用iAd.

If you want the slim iAd banner you have to pass the correct CGSize in the size parameter. In this case CGSizeMake(480, 32). To enable iAds for your App go to itunesconnect.apple.com and add your app with your bundle ID. After that find the Button which says iAd Network Settings and enable iAds.

苗条的风景很少见.您的填充率会很低.我甚至建议横向使用MMA标语(320,50).使用此功能可以做到这一点:

The slim lanscape is rare. Your fillrate will be low. I recommend to use MMA Banner (320, 50) even for landscape orientation. Do this by using this function:

[mpAdView lockNativeAdsToOrientation:MPNativeAdOrientationPortrait];

还请确保导入iAd适配器.默认情况下包括它.

Also be sure to import the iAd Adapter. Its by default included.

这篇关于iPhone景观游戏中的Mo pub + iAds的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆