Google has put a new option on their Pricing and Distribution page of their Google Play Developer Console that requires publishers to declare if they have ads or not. Our app does not have ads, yet we are being flagged as having the AdMob SDK.
We detected Ad SDKs in one or more of your active APKs:
version: XXXXX, sdk: AdMob
If your app is serving ads, please change your ads declaration to 'Yes'. Failure to accurately declare the presence of ads is a policy violation and may result in your app's removal from Google Play. You can visit our Help Center to learn more.
We don't have AdMob, as far as I can tell from our Gradle file:
dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'me.dm7.barcodescanner:zxing:1.7.2' compile 'com.google.android.gms:play-services:8.3.0' compile 'com.android.support:appcompat-v7:23.1.0' compile 'com.android.support:cardview-v7:23.1.0' compile 'com.android.support:recyclerview-v7:23.1.0' }
What might be causing that dependency to show up? How can I get rid of it?
You can follow steps from below URL medium.com/android-news/gradle-dependency-tree-819b68898a53 2. Now, You have a list of dependacy who contains "play-services-ads-identifier", so add { exclude module: "play-services-ads-identifier" } in each dependacy to remove. 3.
YES. Admobs uses Advertising ID. even if you did not put it in the manifest -> latest google ads sdk "play-services-ads" have it in their manifest and it is imported to yours.
Veer Arjun Busani(Mobile Ads SDK Team) The deprecation is only for Android Mobile Ads SDK and not for iOS. In any case, the easiest way to know your Mobile Ads SDK version would be to record a Charles session with your app and look at the request response. It would have your SDKs version number.
You can search for "edit library and dependency.." inside that you will find a lot of liberals and the one which you want delete you can select it and press delete key.
You can run gradlew -q dependencies app:dependencies
to see a the dependencies (including all transitive dependencies) for each of your configurations.
You can also specify a single configuration, such as with --configuration releaseCompile
In your case, you will find that Google Play Services includes a transitive dependency on AdMob.
You can mitigate this by using only individual components of Play Services (such as play-services-location
) instead of the entirety of Play Services. However, you may find that one of the individual components you use still relies on AdMob. For example, version 8.1.0 of play-services-analytics
has a transitive dependency on play-services-ads
, which is the AdMob SDK.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With