AdMob ad serving is limited to certain apps due to "invalid traffic concerns". I realized that the apps were getting installed outside of Google Play in certain countries. (For example - https://www.9apps.com/bn/android-apps).
I want to disable ads if the app is not downloaded from Google Play. So is there a way to detect whether or not an app is downloaded from Google Play?
I have gone through multiple threads in stackoverflow, but all suggest us to use PackageManager which doesn't work on Android 11+ (without special permission). Some suggest Mobile App Attestion solution (eg. from Firebase), but that is for securing server APIs from apps that impersonate our mobile app.
So any inputs on how I can differentiate the source from where the apps were downloaded/installed from will he helpful. Thanks.