与Mobfox的调解Admob

时间:2014-09-19 16:47:21

标签: android admob mobfox

这是我展示广告Mobfox的代码。

<?xml version="1.0" encoding="UTF-8"?>

<ScrollView android:background="#d3d8c2" 
            android:padding="10dp"
            android:fillViewport="true" 
            android:layout_height="match_parent" 
            android:layout_width="match_parent" 
            xmlns:tools="http://schemas.android.com/tools"
            xmlns:android="http://schemas.android.com/apk/res/android">


<LinearLayout android:background="#ffffff"
              android:layout_height="match_parent" 
              android:layout_width="match_parent" 
              android:gravity="center_horizontal" 
              android:orientation="vertical">

<!-- ads MobFox -->
<com.adsdk.sdk.banner.AdView android:layout_height="50dp" 
                             android:layout_width="300dp" 
                             adspaceWidth="320" 
                             adspaceHeight="50" 
                             adspaceStrict="true" 
                             publisherId="MY_PUBLISHER_ID" 
                             animation="true" 
                             location="true" 
                             request_url="http://my.mobfox.com/request.php" 
                             android:id="@+id/mobFoxView"/>

<!-- End ads Mobfox-->


</LinearLayout>

</ScrollView>

我在控制面板MobFox中配置了中介Admob,但我想知道添加代码所需的内容&#34; xmlns:ads="http://schemas.android.com/apk/res-auto&#34; ????

1 个答案:

答案 0 :(得分:0)

如果您不需要使用ads命名空间,那么您就不需要包含它。有些人不需要它,有些人不会