Android - Appsflyer AD_ID permission error in Google Play Console

407 views Asked by At

I have an application already in Google Play Console. I just added Appsflyer SDK to my application by using this official guide and integrated it by using this official guide.

I just added those lines to my Application class:

AppsFlyerLib.getInstance().init("MY DEV KEY", null, this)
            AppsFlyerLib.getInstance().start(this, "MY DEV KEY", object : AppsFlyerRequestListener {
                override fun onSuccess() {
                    //Log.d("APPSFLYER", "Launch sent successfully")
                }

                override fun onError(errorCode: Int, errorDesc: String) {
                    /*
                    Log.d("APPSFLYER", "Launch failed to be sent:\n" +
                            "Error code: " + errorCode + "\n"
                            + "Error description: " + errorDesc)

                     */
                }
            })

Also added those lines to Manifest:

    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="com.google.android.gms.permission.AD_ID"
        tools:node="remove"/>
...

<application
        tools:replace="android:fullBackupContent"
...
</application>

Lastly to gradle:

//AppsFlyer
    implementation "com.appsflyer:af-android-sdk:6.12.2"

My Target SDK is 34.

It works perfectly. I see that organic data comes to Appsflyer dashboard.

But when I try to submit my application to Google Play Console, I see that error:

enter image description here

I already set up the Advertising ID section in Play Console because of my Firebase Crashlytics implementation:

enter image description here

As you see, in this section, it says Your manifest file includes the com.google.android.gms.permission.AD_ID permission. This means your app declares the use of advertising ID. Answer 'yes' or remove this permission from your manifest. but on first picture, it says no.

What am I missing? What is the solution for this ?

2

There are 2 answers

0
Maxim Shoustin On

Ideally, we recommend updating the SDK to the latest version.

Our latest SDK version (v6.12.4) you can find here.

You declare that you are collecting Advertising Identifier in the screenshot.

It says:

You can remove these errors by updating your advertising ID declaration

If you are revoking the permission, it means that you don't want to collect GAID, which contradicts what you've declared.

For a quick sanity test, try aligning the privacy declaration with the permissions in the Manifest. Then, check to see if the error has been resolved.

0
Nam_Lifebuoy On

Please read carefully the condition "If your app participates in the Designed for Families program: " then consider the condition: "If using SDK V6.8.0 and above, you should Revoke the AD_ID permission.".

So if your app is not part of the "Designed for Families program" or "Children app". Please remove "tools:node="remove" in you Manifest and you will fix this error