How to know if AAID is transmitted?

835 views
Skip to first unread message

Eric

unread,
Jun 2, 2022, 10:49:43 PM6/2/22
to Google Mobile Ads SDK Developers
Hi guys, need some advice. Basically google require us to declare AAID permission for app targeting android 13 or above. Below is a portion of what Google sent to me.

"Action Items If you use an advertising ID, you must declare the AD_ID Permission when your app targets Android 13 or above. Apps that don’t declare the permission will get a string of zeros. Note: You’ll be able to target Android 13 later this year. If your app uses an SDK that has declared the Ad ID permission, it will acquire the permission declaration through manifest merge. If your app’s target audience includes children, you must not transmit Android Advertising ID (AAID) from children or users of unknown age."

My questions are:
1) I have updated my app with the latest admob SDK, I assume this is sufficient?
2) Since my app has children as target audience, I have included this ''SetTagForChildDirectedTreatment(TagForChildDirectedTreatment.True)''. So I am assuming this code will prevent transmit of AAID and fulfill the policy?
3) Lastly, is there a simple way to test if AAID is transmitted from my app?

Help and advice would be appreciated greatly.

Cheers
Eric

Mobile Ads SDK Forum Advisor

unread,
Jun 3, 2022, 5:14:23 AM6/3/22
to svey...@gmail.com, google-adm...@googlegroups.com

Hi Eric,

Thank you for reaching out to us.

With regard to your concern, let me answer it below.

1) I have updated my app with the latest admob SDK, I assume this is sufficient?

  • Starting from version 20.4.0, Google Mobile Ads SDK includes the com.google.android.gms.permission.AD_ID permission in the SDK's manifest that is automatically merged into the app manifest by Android build tools. To learn more about the AD_ID permission declaration, including how to disable it, refer to this Play Console Help article.

2) Since my app has children as target audience, I have included this ''SetTagForChildDirectedTreatment(TagForChildDirectedTreatment.True)''. So I am assuming this code will prevent transmit of AAID and fulfill the policy?

  • Then for child targeting, as per our guide, if you call setTagForChildDirectedTreatment with TAG_FOR_CHILD_DIRECTED_TREATMENT_TRUE to indicate that you want your content treated as child-directed for purposes of COPPA. This will prevent the transmission of the Android advertising identifier (AAID).

3) Lastly, is there a simple way to test if AAID is transmitted from my app?

  •  As per checking, we don't have documentation on a way to test the transmission of AAID from an app. But, I would suggest following the details for the answers above.

Regards,

Google Logo
Princess Pamela
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2bbZTJ:ref

Eric

unread,
Jun 3, 2022, 10:12:31 PM6/3/22
to Google Mobile Ads SDK Developers
  Hi Princess

Thanks for your advice. Can you help me review the snippets of code for the childdirected treatment and see if it looks good to you.

void Start()
{
if (instance != this)
{
return;
}
CreateBanner(
#if UNITY_ANDROID
ADMOB_BANNER_ID_ANDROID
#elif UNITY_IPHONE
ADMOB_BANNER_ID_IOS
#endif
);

        RequestConfiguration requestConfiguration = new RequestConfiguration.Builder()
              .SetTagForChildDirectedTreatment(TagForChildDirectedTreatment.True)
              .build();
        MobileAds.SetRequestConfiguration(requestConfiguration);
    }

private void CreateBanner(string id)
{
        AdSize adaptiveSize =
          AdSize.GetPortraitAnchoredAdaptiveBannerAdSizeWithWidth(AdSize.FullWidth);

        this.bannerView = new BannerView(id, adaptiveSize, AdPosition.Bottom);

        AdRequest request = new AdRequest.Builder()
            .AddKeyword("kids")
            .Build();
        this.bannerView.LoadAd(request);
    }

Mobile Ads SDK Forum Advisor

unread,
Jun 6, 2022, 10:06:17 AM6/6/22
to svey...@gmail.com, google-adm...@googlegroups.com

Hi Eric,

Thank you for your response.

Can you confirm if you use the " .AddKeyword("kids")" in setting the ad content of your request? If yes, upon checking into the documentation for targeting, apps can set a maximum ad content rating for their request configuration using the Call SetMaxAdContentRating on RequestConfiguration.Builder. You can check it in ad content filter documentation to know more about it. Let me know if this helps you.

Reply all
Reply to author
Forward
0 new messages