9

I want to submit my app to pre-launch report in Android Developer Console. The app is currently Admob enabled. I heard that the test devices will automatically crawl the app and will perform basic actions every few seconds on the app, such as typing, tapping, and swiping. I fear that this will lead to invalid click on the Admob ads.Please advice me.

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Mylsel
  • 121
  • 7
  • you can always add test ads using AdRequest.Builder.addTestDevice() which will show only test ads on selected devices. read https://firebase.google.com/docs/admob/android/quick-start for more information. – Amod Gokhale Oct 13 '16 at 14:13
  • 3
    Now google ignores invalid clicks within their infrastructures. Read the comments in bottom of the screen. https://medium.com/@danielvido/be-extremely-careful-with-pre-launch-reports-on-android-9f43c090bf4d – Daigo Sato Jan 30 '19 at 12:12

2 Answers2

8

Sadly got my AdMob suspended!

For future folks out there... STAY AWAY FROM PRE-LAUNCH AND ADMOB prior to fully reading outside the Play Developer Console. (which is the one suggest in the answer above me)

I think Google should make it more clear (they know to detect many features within the APK they should at least put it clearly somewhere!).

Well.. after I got some of my own steam in this answer. It seems the safest way at least with AdMob is a suggest here.

So there are 2 options:

  1. Make sure pre-launch is turned ON only for test apks (without Ads). to avoid release Ad Units.

  2. Add the following snippet to your code:

    private boolean isTestDevice() {  
        String testLabSetting = 
               Settings.System.getString(getContentResolver(), "firebase.test.lab");
        return "true".equals(testLabSetting);
    }
    

Thank you for making my day Google!

Rock_Artist
  • 555
  • 8
  • 14
3

https://firebase.google.com/docs/test-lab/overview#testlab_and_mobile_advertising

You should blacklist the IP range listed in the above website.

Fung
  • 961
  • 1
  • 8
  • 17