由于广告问题,我的应用暂停了

时间:2014-12-17 04:13:10

标签: android android-viewpager google-play admob google-play-services

今天 Google 暂停我的应用,说我的广告违反了 Google TOS,但我不知道它实际违反了什么。我想我的代码结构可能有问题,因为我尝试发布它两次,但两者都被暂停了。

在我的应用中,我使用查看寻呼机,在其中我有4个标签。因此广告将放置在View Pager中,如下所示

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/LinearLayout1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="bottom"
android:orientation="vertical" >

<android.support.v4.view.ViewPager
    android:id="@+id/pager"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:layout_weight="1" />

<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"
    app:adSize="SMART_BANNER"
    app:adUnitId="@string/banner_ad_unit_id" >
</com.google.android.gms.ads.AdView>

以及查看寻呼机活动

中的代码
 mAdView = (AdView) findViewById(R.id.adView);
 AdRequest adRequest = new AdRequest.Builder().build();
    mAdView.loadAd(adRequest);

如果有人告诉我连续停赛背后的原因,我将非常感激。

0 个答案:

没有答案
相关问题