【问题标题】:Millennial ads only shows a huge white rectangle千禧一代广告只显示一个巨大的白色矩形
【发布时间】:2012-10-12 20:10:27
【问题描述】:

我正在尝试在我的应用程序中实施 Millennial 媒体广告。我已经通过 XML 设置了它,但是当我运行应用程序时,它只显示一个占据一半屏幕的白色矩形。

在我的日志中我也得到了一个

Millennial ad return failed. Zero content lenght returned.

我的 XML 如下所示:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://millennialmedia.com/android/schema"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical"
    android:id="@+id/mainLay">

    <com.millennialmedia.android.MMAdView
        android:id="@+id/mmadview"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        app:apid="APID"
        app:adType="MMBannerAdTop"
        app:refreshInterval="30"
        app:accelerate="true"
        app:ignoreDensityScaling="false"
    />

    <ListView
        android:id="@+id/list"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content" >
    </ListView>
</LinearLayout>

【问题讨论】:

    标签: android eclipse ads millennial-media


    【解决方案1】:

    我是 Millennial Media 的 Jason。这应该通过正确调整广告单元的大小来解决。看看XML Layout

    您会看到 XML 包括:

    app:height="60"
    app:width="480"
    

    这将限制广告,使其不会占据屏幕并导致 SDK 向我们的服务器询问正确尺寸的广告,这可以解决您的无响应问题。

    如果您仍然没有看到我们填写您的广告请求,或者如果您对 SDK 有任何其他问题,请随时通过 https://support.mmedia.com/ 开票。

    【讨论】:

    • Millennial Media XML 的示例文件均不包含此类条目。请详细说明问题
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-02-23
    相关资源
    最近更新 更多