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:
- Make sure you have included the
meta-data
element with theandroid:name
attribute set to"com.google.android.gms.ads.AD_MANAGER_APP"
in theapplication
element of your app’s manifest file. This is required to declare that your app uses the Google Mobile Ads SDK. - Make sure you have included the
meta-data
element with theandroid:name
attribute set to"com.google.android.gms.ads.APP_ID"
and theandroid:value
attribute set to your app’s AdMob app ID in theapplication
element of your app’s manifest file. This is required to identify your app to the AdMob service. - Make sure you have added the
ACCESS_NETWORK_STATE
andINTERNET
permissions to your app’s manifest file. These permissions are required for the Google Mobile Ads SDK to function properly. - 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’sonCreate()
method, passing in your app’s AdMob app ID as an argument. - 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 themeta-data
element with theandroid: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)
Step 4
Click on “Yes” and check the – – (follow the image below)
Step 5
publish your app and wait for approval from google play. hope this will solve your problem. for more information Visit Here