【发布时间】:2019-07-31 20:06:29
【问题描述】:
我想在我的第一个 Android 应用中加入一些广告,但 Admob 停用了它们。原因:“站点行为:导航。”我尝试了几件事来解决它,但它仍然不符合 Admob 的要求,我不知道为什么。阅读指南没有帮助,我不知道我的应用程序中的用户导航到底有什么问题。也许我的应用程序不适用于广告,因为它是用于具有动态内容的游戏的工具。我很高兴您知道问题的原因可能是什么。
你在这里找不到我的应用程序:https://play.google.com/store/apps/details?id=com.moriruec.ow_companion&hl=de
在 2 个活动的底部有 2 个横幅广告。
我已经重新定位了浮动操作按钮,以便横幅和按钮之间有更多空间
如果游戏未安装,您将被重定向到应用程序的 Play 商店页面,在以前的版本中,当您点击“进入游戏”时没有任何反应
<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recycler_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="52dp"
tools:listitem="@layout/datasetitem" />
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/button_compare"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
android:layout_marginEnd="22dp"
android:layout_marginBottom="148dp"
android:src="@drawable/ic_compare_arrows_black_24dp"
android:visibility="invisible"
app:backgroundTint="@color/red" />
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/button_add_dataset"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
android:layout_marginBottom="78dp"
android:layout_marginEnd="22dp"
android:src="@drawable/ic_add_black_24dp"
app:backgroundTint="@color/red" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.google.android.gms.ads.AdView xmlns:ads="http://schemas.android.com/apk/res-auto"
android:id="@+id/adView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
ads:adSize="BANNER"
ads:adUnitId="ca-app-pub-7240053507946831/3541202378"></com.google.android.gms.ads.AdView>
<!-- ads:adUnitId="ca-app-pub-3940256099942544/6300978111"></com.google.android.gms.ads.AdView> -->
</RelativeLayout>
</androidx.coordinatorlayout.widget.CoordinatorLayout>
【问题讨论】:
标签: android navigation admob ads usability