Is it a good idea to remove the test device ID for AdMob when publishing the application?

I'm going to launch the application on the Play Store, and after experimenting with AdMob (in test mode with my device identifier), I now wonder if I should remove the identifier of the test device and leave only TEST_EMULATOR.

Do you think this is necessary?

+4
source share
1 answer

Yes, before publishing, you should remove the test mode:

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

In onDestroy (): adView.destroy();

In the 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 the settings of the AdMob application, select this: Disable test mode for all requests

+5
source

Source: https://habr.com/ru/post/1448118/


All Articles