How to prevent invalid clicks during Huawei, Amazon,... app reviewing?

Hà Mã Tím
1 min readDec 13, 2020

1. Who should read this?

Developers monetize with Admob, who intent to submit your baby to 3rd appstore.

2. Why this post is helpful?

This post give you strategy to prevent this issue which can save your life.
This post give you boiler plate LOCs which can save you time.

3. What is the context?

Whenever you click "Submit" button from any appstore, you will see real-time analystic will have speak.
That is the time automation testing bots "attack" your ads unit. Your Admob will be risk, your bread can be take away from you hand.

4. How is the strategy that can save your life?

Prevent from loading / displaying ads during test bot running.
By add time condition logic, only show ads when device time after specific date/time.

5. Where is the sample code that save your time?

Define string_ads.xml that contains config to easy override.
Define HelperAds.java with helper methods.
To check if ads should show or not, call:

isAdsReadyToServe(context);

6. Notes

If you find the article useful, help Hà Mã Tím 1 clap to help the article reach more people!
Posts may be reposted, but please link to the original post.

--

--

Hà Mã Tím

Một lập trình viên yêu thương động vật và thích hà mã