google play – My app violates the Android Advertising ID policy-ThrowExceptions

Exception or error:

Google Play Team has rejected my app because:

The advertising identifier must not be connected to
personally-identifiable information or associated with any persistent
device identifier (for example: SSAID, MAC address, IMEI, etc.)
without explicit consent of the user.

For example, we have identified that your app’s attribution SDK
enables collection of IMEI from devices which have an Android
advertising ID without prominent disclosure, which is a violation of
our Android Advertising ID policy.

I’m not collecting the IMEI explicitly so the IMEI must be accessed by one of the dependencies of the app.

How I could detect which one is accessing to the IMEI?

These are my dependencies

    compile "$support_version"
    compile "$support_version"      // I'm using icons from here, like ic_media_pause and such
    compile "$support_version"
    compile "$support_version"
    compile "$support_version"

    compile ''

    // individual dependencies --
    compile "$gms_version"
    compile "$gms_version"
    compile "$gms_version"
    compile "$gms_version"
    compile "$gms_version"

    compile "$facebook_version"
    compile ''

    compile ''

    compile 'commons-codec:commons-codec:1.9'
    compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.3'
    compile 'com.github.chrisbanes.photoview:library:1.2.2'
    compile 'de.greenrobot:eventbus:2.4.0'
    compile 'info.hoang8f:android-segmented:1.0.5'
    compile 'io.card:android-sdk:5.4.2'
    compile 'me.dm7.barcodescanner:zxing:1.9'
    compile ''
    compile 'com.squareup.retrofit:retrofit:1.9.0'
    compile 'com.squareup.okhttp:okhttp:2.2.0'

    compile 'io.reactivex:rxandroid:1.1.0'
    compile 'io.reactivex:rxjava:1.1.0'
    //compile 'io.reactivex:rxjava-joins:0.22.0' // to use JoinObservable (and-then-when combinator)

    compile "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

    // In libs we have:
    // - ZooZ 1.02 : From
    // - AppsFlyer : AF-Android-SDK jar
    // - Volley
    compile fileTree(dir: '../libs', include: '*.jar')

    compile('') {
        transitive = true

Note: AppsFlyer has been configured as:

        AppsFlyerLib.setCollectIMEI(false); //
How to solve:

You are using Appsflyer below sdk 4.3. This is the problem.
This is the email they sent all developers.

Hi there,

The AppsFlyer and Google Play teams are collaborating to ensure that
all advertisers using the AppsFlyer SDK are compliant with the Google
Play privacy policy. To avoid any disruption to your business, we
strongly encourage that all advertisers take the following steps.

If you are running the AppsFlyer SDK version 4.3 or earlier: Please
update to the latest AppsFlyer SDK as soon as possible to maintain
full compliance. If you have enabled IMEI collection in a newer SDK
version: Disable IMEI collection via the AppsFlyer SDK by removing the
following code
AppsFlyerLib.getInstance().setImeiData(“IMEI_DATA_HERE”) If your apps
are not yet compliant with the Google Play privacy policy, we
recommend that you correct your data collection in a timely manner.
For more information about the AppsFlyer SDK, please visit the Help
Center or contact your success manager.

Thank you, The AppsFlyer Team


My application is also removed by Google. I have done the following method to republish it.

  1. Create a privacy policy of application using Free Privacy Policy URL

  2. Publish the privacy policy at URL

  3. Copy the published privacy policy link and add it in Developer Play Console.
  4. Add the privacy policy link in Application also (Optional)

Hope this will help you also.


Crashlytics uses a variety of identifiers to provide their services including the Android ID, and the Android Advertising ID.

So crashlytics lib can be an issue. This lib is dealing with advertising ID. Many of developer getting this warning who are using crashlytics lib and not using AppsFlyerLib.
So I think you should also be concern about crashlytics library.

For more clarification you can visit crashlytics security page


You have to add privacy policy on your application.

First, you have to create a privacy policy URL and then add this URL in GOOGLE PUBLISHER CONSOLE based on application. You can easily create privacy policy using this website.

Privacy Policies

If you have a server/host try to upload privacy policy page on your own server otherwise you can use this website for storing.

Mentioned: you have to add this policy page on your application. Create a menu as privacy police and show all your policy content on a dialog. Easiest way


In my case it was due privacy policy URL was not set in Google Play Console. I also use Crashlytic. But when I added Privacy Policy, it took some time to process and then it got resolved.
I didnt event had to re-publish it again.

Leave a Reply

Your email address will not be published. Required fields are marked *