Search Unity

Question [Solved] Google Advertising ID permission

Discussion in 'Unity Analytics' started by Limewood_, Nov 18, 2022.

  1. Limewood_

    Limewood_

    Joined:
    Jan 5, 2020
    Posts:
    62
    I'm using Analytics and IAP, but no Ads.
    Still, the AD_ID permission gets added to the manifest for my Google builds.
    I've tried to find info on this by searching the forums and the only answers I could find said that Unity does not use the advertising ID for Analytics/IAP, so why is it added in the manifest?
    Do I need to change some setting to make it not be added?

    Some additional information:
    I'm getting this error when uploading an app bundle to Google Play:
    Code (CSharp):
    1. This release includes the com.google.android.gms.permission.AD_ID permission but your declaration on Play Console says that your app doesn't use advertising ID.
    2.  
    3. You must update your advertising ID declaration.
    I've found the permission declaration in the following AndroidManifest files, created by Unity:
    Library/Bee/Android/Prj/IL2CPP/Gradle/launcher/build/intermediates/bundle_manifest/release/bundle-manifest/AndroidManifest.xml
    Library/Bee/Android/Prj/IL2CPP/Gradle/launcher/build/intermediates/instant_app_manifest/release/AndroidManifest.xml
    Library/Bee/Android/Prj/IL2CPP/Gradle/launcher/build/intermediates/merged_manifests/release/AndroidManifest.xml

    NOTE: As this post has not received any reply yet, I realized this might not be the right forum for this question, so I've posted it in the Android forum instead.
     
    Last edited: Nov 18, 2022
  2. Limewood_

    Limewood_

    Joined:
    Jan 5, 2020
    Posts:
    62
    This issue has been solved (and was posted in the wrong forum in the first place). Feel free to remove this.
     
  3. CharSui

    CharSui

    Joined:
    Nov 19, 2021
    Posts:
    4