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

2

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.

Vena answered 13/10, 2016 at 13:41 Comment(2)
you can always add test ads using AdRequest.Builder.addTestDevice() which will show only test ads on selected devices. read firebase.google.com/docs/admob/android/quick-start for more information.Fleshy
Now google ignores invalid clicks within their infrastructures. Read the comments in bottom of the screen. medium.com/@danielvido/…Asbestosis
E
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!

Eradicate answered 13/9, 2017 at 19:13 Comment(0)
S
3

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

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

Swellhead answered 20/6, 2017 at 2:30 Comment(1)
Why isn't this done automatically for AdMob? They're all Google's products afterall.Nitin

© 2022 - 2024 — McMap. All rights reserved.