AdMob的介导Millenial媒体的广告承担刷新整个屏幕 [英] AdMob mediated Millenial Media ad taking entire screen on refresh

查看:131
本文介绍了AdMob的介导Millenial媒体的广告承担刷新整个屏幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经有AdMob的调解到位,我在加入千禧媒体给它的过程。我的广告是使用XML这样的补充:

I've already got AdMob mediation in place, and I'm in the process of adding Millennial Media to it. My ads are added using XML like this:

<RelativeLayout
    android:id="@+id/adContainer"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignParentBottom="true"
    android:layout_alignParentLeft="true"
    android:layout_alignParentRight="true"
    android:gravity="center_horizontal"
    android:orientation="vertical" >

    <com.google.android.gms.ads.AdView
        android:id="@+id/adView"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        ads:adSize="BANNER"
        ads:adUnitId="xxx"
        android:gravity="center_horizontal"
        android:visibility="gone" />
</RelativeLayout>

这是走了默认,但如果用户不是付费用户由code所示。该广告刷新定期使用AdMob的帐户网站设置的时间。

It is gone by default, but shown by code if user is not a paying user. The ads refresh regularly using a time set in AdMob account website.

千年媒体的广告出现如预期,如果他们被选作第一个广告,但如果广告刷新和千禧媒体选择服务于广告它需要整个屏幕下方看到:

Millennial Media ads appear as intended if they are chosen as the first ad, but if the ad refreshes and Millennial Media is chosen to serve the ad it takes the entire screen as seen below:

输入图像的描述在这里 href="http://i.stack.imgur.com/5HiKZ.png" rel="nofollow">

我有<一个href="http://stackoverflow.com/questions/16653670/integrate-millennial-media-sdk-5-0-in-android-application">read一些信息是说了一些关于千禧媒体广告需要特定大小,但我不insering其广告与code,我不知道如何处理这个问题。另外,因为我从几个供应来源,我想不是要拼命code在宽度/高度。

I've read some information that said something about Millennial Media ads requiring specific sizing, but as I'm not insering their ad with their code, I'm not sure how to handle this. Also, since I'm serving from several sourced I'd like not to hard code in the width/height.

我怎样才能保持它正常大小?

How can I keep it correctly sized?

推荐答案

它看起来并不像AD浏览报突然采取更多的空间。它看起来像上面AD浏览视图突然少取。

It doesn't look like the AdView is suddenly taking more space. It looks like the View above the AdView is suddenly taking less.

查看您的完整布局。东西应该指定机器人:layout_height =match_parent如果母公司是根视图

Review your full layout. Something should specify android:layout_height="match_parent" where the parent is root View.

这篇关于AdMob的介导Millenial媒体的广告承担刷新整个屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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