How to fix the “Families Data Practices” Google Play issue

Motivation:

You got the “Families Data Practices” issue from Google Play.
The detailed information is “your app or an SDK in your app transmits device identifier(s) from children or users of unknown age”.
This issue happens to your Android app with AdMob SDK.
You need to fix it to prevent your app from being removed from Google Play.

Solution:

1. Upgrade the AdMob SDK (Android) to the latest version.

2. Find the code below.

MobileAds.initialize(this, new OnInitializationCompleteListener() {
@Override
public void onInitializationComplete(InitializationStatus initializationStatus) {
}
});

3. Add the code below after the code above.

		RequestConfiguration requestConfiguration = MobileAds.getRequestConfiguration()
					.toBuilder()
					.setTagForChildDirectedTreatment(
							RequestConfiguration.TAG_FOR_CHILD_DIRECTED_TREATMENT_TRUE)
					.setMaxAdContentRating(RequestConfiguration.MAX_AD_CONTENT_RATING_G)
					.build();
			MobileAds.setRequestConfiguration(requestConfiguration);

TAG_FOR_CHILD_DIRECTED_TREATMENT_TRUE indicates that you want your content treated as child-directed for purposes of COPPA. This will prevent the transmission of the Android advertising identifier (AAID).

Rated G: General audiences – All ages admitted.

4. Add below code to AndroidManifest.xml to disable Analytics data collection.

<uses-permission android:name="com.google.android.gms.permission.AD_ID" tools:node="remove" />
<meta-data android:name="firebase_analytics_collection_deactivated" android:value="true" />
<meta-data android:name="google_analytics_adid_collection_enabled" android:value="false" />

5. Submit your new build to Google Play.

Include the below message in the review request.

We have fixed it by setting TAG_FOR_CHILD_DIRECTED_TREATMENT_TRUE and MAX_AD_CONTENT_RATING_G as suggested on https://support.google.com/admob/answer/6223431?hl=en.

6. Go to Google Play > Releases overview and check Install base percentage of your new version. Include below note to your Release note:

Families Data Practices issue fix.

7. Submit an appeal with the message below.

We have fixed the issue by 

1. Preventing the transmission of the Android advertising identifier (AAID) as suggested on https://support.google.com/googleplay/android-developer/answer/6048248 , and

2. Disabling Analytics data collection based on https://firebase.google.com/docs/analytics/configure-data-collection?platform=android

Could you please rescan the NEW app, version 9.0, released on Dec 12, 2023 and remove this warning?

How to fix the “Restricted ad serving – Site Behavior: Navigation” AdMob issue

Motivation:

You got the “Restricted ad serving” issue from AdMob.
The detailed information is “Site Behavior: Navigation”.
This issue happens to your Android app.
You need to fix it to remove your ad serving restriction.

Solution:

1. Upgrade the AdMob SDK (Android) to the latest version.

2. Review all URLs in your application code to ensure that there is no broken link.

3. Upgrade all URLs with HTTP protocol to HTTPS protocol in your application code if there are any.

4. Repeat requesting a review in AdMob Policy center until it is approved. Typically it takes about a week for the restriction to be removed.

Include the below message in the review request.

We have fixed it.