I am a newbie here at GoogleAdMob
I have a question like for Google AdMob iOS we have to ask for ATTrackingManager.requestTrackingAuthorization
and after that, we have to ask UMPConsentInformation.sharedInstance.requestConsentInfoUpdate
Another question is from ATTrackingManager.requestTrackingAuthorization
if user is not authorised then we can ask for UMPConsentInformation.sharedInstance.requestConsentInfoUpdate
because user already permitted to not track.
And last one is we can just ask for UMPConsentInformation.sharedInstance.requestConsentInfoUpdate
UMP Consent information only? Because on GoogleAdmob SDK there is no any code for ATTrackingManager.requestTrackingAuthorization
.
Sorry someone is more experienced on this so please don’t downgrade this question.
2
Answers
I implemented this solution earlier on various app it’s working for me.
UMPSDK
it’s introduce due to privacy purpose in EU User Consent PolicyNo we don’t need to ask
ATTrackingManager.requestTrackingAuthorization
now because it’s already covered byUMPSDK
so whenever we implementedUMPSDK
we need to setupGDPRMessage
fromADMob
account.This message will present while calling it.
For this answer you need visit User ATTrackingManager Journey
There are two types of form for two type of different
EEA
¬ EEA
users.EEA
user will see GDPR dialogue whereconsent
button will visible to form and when user click on it it will presentATTrackingManager
dialogue.GDPR Message Form:
not EEA
user will see IDFA dialogue wherecontinue
button will visible to form and when user click on it it will presentATTrackingManager
dialogue.IDFA Message Form:
How to setup GDPR & UMP
https://www.youtube.com/watch?v=EwcrESnAYEI&t=2s&ab_channel=GoogleAdMob
Google ads with UMP demo
https://github.com/googleads/googleads-mobile-ios-examples
TL;DR
If you use Google UMP SDK you only need to configure
UMPConsentInformation
in your code and then add relevant messages in the AdMob UI – Google will take care when and if to display that messages (and in which order).Explanation
According to the Google AdMob website if you use their UMP SDK you don’t need to manually request ATT permission.
Here are the possible variants:
You mainly have two options:
UserMessagingPlatform
and configure relevant messages on AdMob UI.Guide
Here are the main steps (that I’m currently using in some of my apps):
UserMessagingPlatform
– it is contained in GoogleMobileAds:Reference: https://developers.google.com/admob/ios/quick-start
AppTrackingTransparency
– you won’t use it in code but Google UMP will use it to create a popup for you:Reference: https://developers.google.com/admob/ios/privacy/idfa
Also you need to add the below key to the
Info.plist
:All you need is
UMPConsentInformation.sharedInstance
– there’s no need to add anything related withATTrackingManager
.Also make sure to follow additional steps like delaying the app measurement: https://developers.google.com/admob/ios/privacy/gdpr
Here you need to add both:
Once you setup them in the AdMob UI they’ll be shown for the apps that are using the Google UMP SDK.
Note: Just make sure to select the correct app when creating a new message.