首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用Mobfox的中介Admob

使用Mobfox的中介Admob
EN

Stack Overflow用户
提问于 2014-09-20 00:47:21
回答 1查看 386关注 0票数 1

这是我用来显示广告的代码Mobfox。

代码语言:javascript
复制
<?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中配置了mediation Admob,但我想知道添加代码"xmlns:ads="http://schemas.android.com/apk/res-auto“需要做什么?

EN

回答 1

Stack Overflow用户

发布于 2014-09-21 08:58:44

如果不需要使用ads名称空间,那么就不需要包含它。看起来你并不需要它,有些人不需要

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/25938764

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档