【发布时间】:2014-08-20 07:00:56
【问题描述】:
我已经在 mopub 网络中集成了 InMobi。我已经把 mopub 的代码和它的 xml 放在一起了。是否需要将 Inmobi 代码与 mobup 一起放置。如果是,那么将使用哪个 xml。 请帮我解决这个问题。
//我的代码
moPubView = (MoPubView) rootView.findViewById(R.id.adview);
moPubView.setAdUnitId("6d9c103be7aa446ab94e543462a390d8");
moPubView.forceRefresh();
moPubView.loadAd();
//我的xml
<com.mopub.mobileads.MoPubView
android:id="@+id/adview"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_alignParentBottom="true"
ads:loadAdOnCreate="true"/>
【问题讨论】:
-
请发布您到目前为止所做的代码?
-
再次检查。我添加了我的工作@maven