Google Mobile Ads Unity Plugin - iOS App Tracking Transparency

1,168 views
Skip to first unread message

Kwong

unread,
Mar 28, 2021, 11:29:15 PM3/28/21
to Google Mobile Ads SDK Developers
Hi I'm using Google Mobile Ads Unity Plugin v5.4.0, but it does not have NSUserTrackingUsageDescription included in info.plist after building iOS Xcode project. Is this included in the latest v5.4.0 GMA Unity plugin?

Mobile Ads SDK Forum Advisor Prod

unread,
Mar 29, 2021, 2:04:47 AM3/29/21
to kuolian...@gmail.com, google-adm...@googlegroups.com

Hi Kwong,

Thank you for reaching out to us.

As per documentation, the latest v5.4.0 GAM unity plugin only included the SKAdNetwork identifiers that will automatically included in Info.plist. In preparing for iOS 14+, you needed to update your Info.plist to add the NSUserTrackingUsageDescription key with a custom message describing your usage.

Regards,

Google Logo
Princess Pamela Pineda
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2Enx44:ref

Kwong

unread,
Mar 29, 2021, 11:36:16 AM3/29/21
to Google Mobile Ads SDK Developers
Hi,

I could add that manually in xcode project, but that would lead to these issues:
1. I have to manually add that key in info.plist everytime I build xcode project from Unity. This is counter productivity and likely to be error prone when we miss/forget adding the key after each build 
2. Does Google Mobile Ads For Unity call requestTrackingAuthorization automatically after we add the NSUserTrackingUsageDescription? Or do we have to implement our own native code for Android and iOS and then link them to Unity C#?

Look forward to hear from you on these issues.

Mobile Ads SDK Forum Advisor Prod

unread,
Mar 29, 2021, 2:59:00 PM3/29/21
to kuolian...@gmail.com, google-adm...@googlegroups.com
Hi Kwong,

Thank you for responding back to us. I work along with Princess and will be helping you today. Having looked over the previous comments. I would like to reiterate what was said previously. If you follow what is being shown here . This will help to resolve the questions that you have asked. As for having to redo this every build? You would not. As for if this is built in? Yes, once you do as is suggested it should work as it states. The ATT system is only for iOS and will only take affect for the iOS devices. Does not need to be coded natively.

Regards,
Google Logo
William Pescherine
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2Enx44:ref

Kwong

unread,
Apr 4, 2021, 1:05:31 AM4/4/21
to Google Mobile Ads SDK Developers
Hi William,

The link you sent is for native iOS implementation, but not for Unity C#. However, here are the steps I did:
1. Build iOS project from Unity 3D.
2. Open the iOS project in Xcode
3. Add "Privacy - Tracking Usage Description" in Info.plist
4. Add "AppTrackingTransparency.framework" under Unity-iPhone.xcodeproj -> General -> Frameworks,Libraries,and Embedded Content

There's no popup asking for tracking permission until I added "requestTrackingAuthorizationWithCompletionHandler" in iOS native code in Xcode project. This seems to be not out of box and we need to always update native iOS code to enable the tracking popup after building a clean Xcode project from Unity 3D.

Also, there are many times we need to build a clean Xcode project from Unity 3D Editor because the Unity messes up the existing project by adding duplicate libraries and run scripts sometime or we need to build from different machines. In that case, we always need to add those iOS native code to the Xcode project, which is a bit counter productive

Let me know if I missed any step. Thanks and look forward to your reply.

Gaming Free fire

unread,
Apr 4, 2021, 3:18:01 PM4/4/21
to Kwong, Google Mobile Ads SDK Developers
Yes

--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-admob-ads-sdk/71ffb368-ab98-4b89-9508-0518e8154f10n%40googlegroups.com.

Mobile Ads SDK Forum Advisor Prod

unread,
Apr 5, 2021, 2:36:09 AM4/5/21
to adda...@gmail.com, kuolian...@gmail.com, google-adm...@googlegroups.com
Hi Kwong,

The NSUserTrackingUsageDescription is on the Unity platform side, and not on the SDK level. With this, we recommend to follow the Post build steps guide on this link instead: https://alanyeats.com/post/unityapptrackingtransparencypopup/

Hi Gaming Free fire,

Do you have any concerns related to Mobile Ads SDK? If so, please provide us the details. We'll be happy to assist you.

Regards,
Google Logo
Teejay Wennie Pimentel
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2Enx44:ref

Kwong

unread,
May 11, 2021, 11:29:16 PM5/11/21
to Google Mobile Ads SDK Developers
Thanks Teejay. I noticed Unity has released a plugin to show the iOS Ad Tracking Transparency popup. Does GMA handle the ad tracking automatically once user allow tracking? Is there any extra step we need to setup for GMA unity plugin side? 

Mobile Ads SDK Forum Advisor Prod

unread,
May 12, 2021, 3:22:42 AM5/12/21
to kuolian...@gmail.com, google-adm...@googlegroups.com
Hi Kwong,

With regard to your concern, as long as you've followed that guide that we provided previously, we recommend no further action on your end.
Reply all
Reply to author
Forward
0 new messages