Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I submit an app for pre-launch test with Admob enabled

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.

like image 440
Mylsel Avatar asked Oct 13 '16 13:10

Mylsel


2 Answers

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!

like image 194
Rock_Artist Avatar answered Nov 05 '22 21:11

Rock_Artist


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

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

like image 22
Fung LAM Avatar answered Nov 05 '22 23:11

Fung LAM