Search Unity

Google Play Services Update Ad ID Permission & Policies for Family Apps

Discussion in 'Unity Ads & User Acquisition' started by SandJewel, Nov 11, 2021.

  1. SandJewel

    SandJewel

    Joined:
    Sep 7, 2016
    Posts:
    48
    https://support.google.com/googleplay/android-developer/answer/6048248

    I have a question in regards to the new Google Play Services update this year, in which the advertising ID will be removed when a user opts out of this in the android settings.

    How do the Ads Monetizations such as Unity Ads, Google Mobile Ads SDK, and Applovin collect the Advertising ID, and how can we check to see if this in fact collected, so we can remove it?

    In the policy above, it states that some SDK's such as Google Mobile Ads SDK may declare this permission in the manifest - however upon checking the manifest, I do not see the permission to collect the Ad ID.

    Is there an easy way to disable this or do we need to declare this line here in the manifest if we don't see it in there?

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

    Any help appreciated as we are trying to understand how this will be enforced by April 2022 when Google stated they will expect developers to update any family related apps on the Play Store & remove the collection of the Ad ID.
     
    achimmihca likes this.
  2. nerddoc001

    nerddoc001

    Joined:
    Nov 11, 2016
    Posts:
    24
    hello @SandJewel did you find answer re the question?
    i'm also trying to understand the new google play service policy re kids/family game and AD ID
     
  3. jonathan84clark

    jonathan84clark

    Joined:
    Aug 29, 2015
    Posts:
    4
    Hello Everyone,

    This is an issue for me as well. I tried manually adding com.google.android.gms.permission.AD_ID to my Android manifest file and the build failed. So I need to get this working so Google AdMob will work in Android 12 but there doesn't seem to be a way to do this in Unity. I am using unity 2019 right now I am going to update to 2021.211f1 and see if there is support for it there.
     
    matsu36 likes this.
  4. nghiadotuan

    nghiadotuan

    Joined:
    Oct 27, 2017
    Posts:
    1
    You try put line
    <uses-permission android:name="com.google.android.gms.permission.AD_ID"/>
    outside application tag.
     
    Micka_RedRare and hsncnhema like this.
  5. Heero888

    Heero888

    Joined:
    Jun 18, 2017
    Posts:
    57
    I have the similar issue:

    Unity2020.3.18f

    1) I have already set to use Custom Main Manifest in Project Settings -> Player -> Publishing Settings -> Build -> Custom Main Mainifest box is checked

    2) In the Manifest file Assets\Plugins\Android\AndroidManifest.xml I pasted <uses-permission android:name="com.google.android.gms.permission.AD_ID"/> out side the application tag and before </manifest>

    But i still get this warning message when I upload my project into Google Play Console:
    "You must complete the advertising ID declaration before you can release an app that targets Android 13 (API 33). We'll use this declaration to provide safeguards in Play Console to accommodate changes to advertising ID in Android 13.

    Apps targeting Android 13 or above and use advertising ID must include the com.google.android.gms.permission.AD_ID permission in the manifest."

    Attached are screen shots of my Project Setting and Manifest. Any ideas?
     

    Attached Files:

  6. PeachyPixels

    PeachyPixels

    Joined:
    Feb 17, 2018
    Posts:
    713
    If you're using Unity Ads (V4.0.1 and newer I believe) this is handled automatically (during the build process Unity Ads will add this to the manifest)
    I think Google is showing this prompt for all apps that contain an Ad SDK (regardless of whether the permission is set). I don't think there is anyway to avoid it.

    You just need to answer No or Yes (then tick the relevant feature boxes) and that's it. Looks like it's a one time thing (per app)

    Hope this helps.
     
    Last edited: Aug 1, 2022
    InstaBaron likes this.
  7. Heero888

    Heero888

    Joined:
    Jun 18, 2017
    Posts:
    57
    Where I find that No or Yes buttons? Attached image is what I see
     

    Attached Files:

  8. PeachyPixels

    PeachyPixels

    Joined:
    Feb 17, 2018
    Posts:
    713
    Select your app in the Google Play dashboard then select the App Content section. It can be found at the bottom.
     
  9. Heero888

    Heero888

    Joined:
    Jun 18, 2017
    Posts:
    57
    found it! Thanks!
     
    PeachyPixels likes this.
  10. RuneSoegaard

    RuneSoegaard

    Joined:
    Feb 22, 2017
    Posts:
    5
    Hi.
    Does unity use the advertising ID if the Ads services are turned off in the app? (Analytics and in app purchasing are turned on)
     
  11. hsncnhema

    hsncnhema

    Joined:
    Nov 16, 2022
    Posts:
    1
    This is the solution for me. I manually added the line but to the wrong place. Thanks
     
  12. Abdullah_Wael24

    Abdullah_Wael24

    Joined:
    Jul 17, 2021
    Posts:
    4
    I've tried doing that but it didnt work, any ideas?
     
  13. NeptosDS

    NeptosDS

    Joined:
    Jun 3, 2020
    Posts:
    1
    If anyone is still having these problems, I bashed my head against the keyboard for a day until I finally solved it. I had another release that didn't have this permission and used an older build, and somehow this error was presented for my new release without any mention of the older one. So try update/remove any old active builds that don't have this permission.
     
  14. Gray_FoxWare

    Gray_FoxWare

    Joined:
    Jan 31, 2019
    Posts:
    16
    I keep getting this error even though i have the permission in the manifest from using legacy advertisement.

    is this a unity bug?

    All my old builds have been replaced with new ones and it keeps popping up. I cant remove old releases.
     
    Magris likes this.