通用广告中介自动调整大小 [英] Universal Ad Mediation Auto Resize

查看:39
本文介绍了通用广告中介自动调整大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在构建一个新的通用应用。

I'm building a new universal app.

我已经在我的应用中集成了广告中介。但我不知道我的广告如何通过手机,平板电脑或设备设备获得正确的尺寸?
b
$
能帮帮我吗?

I have integrated ad mediation in my app. But I don't know how to my ads get correctly size with mobile, tablet or destop  device?

Can you help me, please?

非常感谢!

推荐答案

Hello TangNV,

Hello TangNV,

当您在应用程序中拖放AdMediator Control时,默认大小设置为300x250。您可以保留此项,或将其设置为列出的IAB标准尺寸之一

here

While you drag and drop the AdMediator Control in the app, the default size gets set to 300x250. You may retain this, or set it to one of the IAB standard sizes listed here.

或者,您可以使用Store Analytics API中的AnalyticsVersionInfo类来确定您的应用运行的设备类型(桌面/手机/平板电脑),然后在运行时相应地设置广告尺寸。

Alternatively, you may use the AnalyticsVersionInfo class from the Store Analytics API to figure out which device type your app is running on (Desktop/Phone/Tablet) and then set the ad size accordingly at run time.

希望这有帮助,

问候,

Anusha S [MSFT]

Anusha S [MSFT]


这篇关于通用广告中介自动调整大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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