74

I am trying to release a Flutter based Android app to the Play Store.

When I review my release in Play Store console, I have the following warning:

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 using advertising ID must include the com.google.android.gms.permission.AD_ID permission in the manifest.

I have followed the advice and added the following to my android/app/src/main/AndroidManifest.xml:

    </application>
    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="com.google.android.gms.permission.AD_ID"/>
</manifest>

When I 'flutter clean', create and upload a new bundle, I'm still getting the same warning. Does anyone know how to resolve this warning?

Note: I have incorporated Google Ads in my app using the google_mobile_ads plugin.

Luke

Luke
  • 1,149
  • 1
  • 7
  • 15
  • Does this answer your question? [I don't use ads in my flutter app then why this message is showing in my play console?](https://stackoverflow.com/questions/73132752/i-dont-use-ads-in-my-flutter-app-then-why-this-message-is-showing-in-my-play-co) – Bink Aug 24 '22 at 22:45
  • No that doesn't help me because I am using Ads and the answers from that link is for those not using Ads. That link may help @theCaptainXgod. Thanks for sharing. – Luke Aug 26 '22 at 05:15

2 Answers2

126

There are 2 steps that you have to follow to solve this problem.

  1. add com.google.android.gms.permission.AD_ID permission in AndroidManifest.xml file.
  2. Go to your Google Play Console select the app which you are trying to upload then on the left side go to Policy and programs -> App content then select Actioned tab, scroll down and find Advertising ID form fill this form by clicking on Manage button on right side.

So you have already done step 1. Now complete step 2 and upload your app again.

Ali Asjad
  • 1,489
  • 1
  • 10
  • 11
  • Hey, can you help me too? I didnt even have ads but they ask for declaration & even though i saved it using NO, my app is not published – theCaptainXgod Aug 09 '22 at 05:09
  • @theCaptainXgod kindly post it as s separate question with details. – Ali Asjad Aug 09 '22 at 12:08
  • 52
    If your app does not use "Advertising ID" then skip step 1 and jump to step 2... Select "No" on the provided form. – Giddy Naya Aug 11 '22 at 15:54
  • 1
    The link for "App content" is now under **Policy and programs** all the way down in the menu. Look for a shield icon with the letter 'i' next to it. After clicking "App content", there are many "To do" items. Scroll down to **Advertising ID** and click Start. – chemturion Jan 14 '23 at 13:37
79

--- UPDATE June 14th, 2023 ---

  1. Go to your Google Play Console select the app which you are trying to upload then on the left side go to Policy and Programs -> App content Play console Menu 1
  2. Now open tab Actioned
    enter image description here
  3. And scroll down to Advertising ID enter image description here
  4. Here now you can choose Manage, then choose No incase you do not use Advertising ID
    Or Yes if you (or apps you use) do, like Google Analytics or Firebase Analyicis
    screenshot of Google Play Consoles Advertising ID Form
  5. Only if you answered with Yes above, add the following line to your AndroidManifest.xml:
    <uses-permission android:name="com.google.android.gms.permission.AD_ID"/>
    




--- before May 17th, 2023 ---

  1. Go to your Google Play Console select the app which you are trying to upload then on the left side go to Policy -> App content in there fill the Advertising ID form.

    screenshot of Google Play Consoles Advertising ID Form

  2. Only if you answered with Yes in the form shown above, add the line shown below to your AndroidManifest.xml:
    <uses-permission android:name="com.google.android.gms.permission.AD_ID"/>
    
marvinfrede
  • 1,055
  • 5
  • 12
  • Just to be clear. I'm updating my app after two years. I have received this warning for the first time. I always show Ads through com.google.android.gms:play-services-ads, but this concept of "Advertising Id" is new to me so I guess I'm not using it. Should I answer "No" or "Yes" to this question? – Pablo Alfonso Nov 12 '22 at 17:24
  • @PabloAlfonso I think you are only using an Advertising ID in case you are using the [Advertising ID API](https://developers.google.com/android/reference/com/google/android/gms/ads/identifier/AdvertisingIdClient). --- Fore more info on Advertising ID, see the [Advertising ID Help Page](https://support.google.com/googleplay/android-developer/answer/6048248?hl=en-GB) – marvinfrede Nov 16 '22 at 13:08
  • This solved the issue for my Xamarin.Android app – sandeepani Jan 25 '23 at 06:20
  • 3
    Important detail for me was: Google Analytics and Firebase Analytics use Advertising ID to say who is who. So even thou I do not have ads, I had to check I use it: https://support.google.com/firebase/answer/6318039?hl=en – drpawelo Mar 17 '23 at 18:08
  • 1
    Must be old - because this area doesn't exist any more. – Nick May 17 '23 at 13:54
  • @Nick updated it. – marvinfrede Jul 10 '23 at 12:41