Mobclix的广告没有显示在安卓 [英] Mobclix Ads not showing in android

查看:155
本文介绍了Mobclix的广告没有显示在安卓的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看了官方的<一个href="http://support.mobclix.com/attachments/token/lvbgrqsfpjgvgxb/?name=Detailed%20Start%20Guide%20for%20Android.pdf"相对=nofollow>文档,并试图在我的应用程序集成Mobclix的广告,但我没有得到任何信息。

I read the official docs and tried to integrate MobClix Ads in my App but I am not getting any Ads.

AdMobActivity.java

import com.mobclix.android.sdk.MobclixMMABannerXLAdView;

import android.app.Activity;
import android.os.Bundle;

public class MobclixDemo extends Activity {
    private MobclixMMABannerXLAdView adview_banner=null;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        adview_banner = (MobclixMMABannerXLAdView) findViewById(R.id.banner_adview);        
        adview_banner.getAd();

    }
}

也是我在加入Mobclix的AD浏览报 XML 文件

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">
    <TextView
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:text="@string/hello" />

    <com.mobclix.android.sdk.MobclixMMABannerXLAdView
        android:id="@+id/banner_adview"
        android:layout_width="320dip"
        android:layout_height="50dip"
        android:layout_gravity="center" />

</LinearLayout>

,并添加所需的权限和AD ID 清单这样的文件

<?xml version="1.0" encoding="utf-8"?>
<manifest
    xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.mobclix.demo"
    android:versionCode="1"
    android:versionName="1.0">
    <uses-sdk android:minSdkVersion="8" />

    <application
        android:icon="@drawable/icon"
        android:label="@string/app_name"
        android:debuggable="true"
        android:hardwareAccelerated="true">
        <activity
            android:name=".MobclixDemo"
            android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

        <meta-data
            android:name="com.mobclix.APPLICATION_ID"
            android:value="450F718E-99C3-4BA0-9BD1-D20B41425280" />
        <activity
            android:name="com.mobclix.android.sdk.MobclixBrowserActivity"
            android:theme="@android:style/Theme.Translucent.NoTitleBar"
            android:hardwareAccelerated="true" />

    </application>

    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.READ_PHONE_STATE" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

</manifest>

我没有得到任何线索我是否失去了一些东西在我的code或问题,广告标识,因为我从我的客户端本身得到了它。

I am not getting any clue whether I missing something in my code or the problem with Ads ID because I got it from my client itself.

推荐答案

你检查你的DDMS的Mobclix的广告请求失败什么的?而且,你有没有注册的所有商户/广告商在服务选项卡?

Did you check your DDMS for the MobClix ad request failed or something? And, did you sign up for all the merchants/ad-providers in the service tab?

这篇关于Mobclix的广告没有显示在安卓的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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