How to Solve You must complete the advertising ID declaration before releasing an app that targets Android 13

Many people are very worried about the new Google update advertising ID declaration before releasing an app that targets Android 13 and doesn’t understand how to solve this issue. No need to worry today I will show you how to set up this Advertising ID and publish your one properly and get your one approved without any hassle.

let’s see how to solve the (You must complete the advertising ID declaration before releasing an app that targets Android 13 ) issue in your google play console Account. to solve this issue follow the steps below –

To solve the “You must complete the advertising ID declaration” error when releasing an app that targets Android 13, you will need to follow these steps:

  1. Make sure you have included the meta-data element with the android:name attribute set to "com.google.android.gms.ads.AD_MANAGER_APP" in the application element of your app’s manifest file. This is required to declare that your app uses the Google Mobile Ads SDK.
  2. Make sure you have included the meta-data element with the android:name attribute set to "com.google.android.gms.ads.APP_ID" and the android:value attribute set to your app’s AdMob app ID in the application element of your app’s manifest file. This is required to identify your app to the AdMob service.
  3. Make sure you have added the ACCESS_NETWORK_STATE and INTERNET permissions to your app’s manifest file. These permissions are required for the Google Mobile Ads SDK to function properly.
  4. Make sure you have properly initialized the Google Mobile Ads SDK in your app. You can do this by calling the MobileAds.initialize() the method in your app’s onCreate() method, passing in your app’s AdMob app ID as an argument.
  5. If you are using a third-party ad network in addition to AdMob, make sure you have declared the third-party ad network in the application element of your app’s manifest file using the meta-data element with the android:name attribute set to "com.google.android.gms.ads.third_party_id_provider" and the `android: value

Also you can follow the steps below –

step 1

add the permission ( com.google.android.gms.permission.AD_ID ) in your App Manifest File.

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

Step 2

make compileSdkVersion 33 and targetSdkVersion 33

android {
    compileSdkVersion 33
   
    defaultConfig {
        applicationId "droidrocks.com.mypaintart"
        minSdkVersion 24
        targetSdkVersion 33
        versionCode 1
        versionName "1.0.0"
        multiDexEnabled true
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
        ndk {
            debugSymbolLevel 'SYMBOL_TABLE'
        }
    }
 }

 

Step 3

go to Menu and Click on App Content > Advertising ID > Start  – (follow the image below)

You must complete the advertising ID declaration before releasing an app that targets Android 13

Step 4

Click on “Yes” and check the –  – (follow the image below)

You must complete the advertising ID declaration before releasing an app that targets Android 13 You must complete the advertising ID declaration before releasing an app that targets Android 13

Step 5

publish your app and wait for approval from google play. hope this will solve your problem. for more information Visit Here

Related blog posts