Is it a good idea to remove test devices id for AdMob when publishing an app?

前端 未结 1 535
悲哀的现实
悲哀的现实 2021-01-13 15:28

I\'m preparing to launch an app in the Play Store, and after experimenting with AdMob (in test mode with my device id), I am now wondering if I should remove the test device

相关标签:
1条回答
  • 2021-01-13 16:01

    Yes you should remove test mode before publishing:

        AdView adView = (AdView) findViewById(R.id.ad);
        AdRequest adRequest = new AdRequest();
        adView.loadAd(adRequest);
    

    In onDestroy(): adView.destroy();

    In layout:

    <com.google.ads.AdView
        android:id="@+id/ad"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentLeft="true"
        android:layout_alignParentRight="true"
        android:layout_alignParentTop="true"
        ads:adSize="BANNER"
        ads:adUnitId="@string/admob_publisher_id"
        ads:loadAdOnCreate="true" >
    </com.google.ads.AdView>
    

    In AdMob app settings select this: Disable test mode for all requests

    0 讨论(0)
提交回复
热议问题