For key considerations when preparing your app for Google Play and Android privacy changes, see Privacy strategies for Android.
For iOS privacy changes, check out Privacy strategies for iOS.
Enable SKAdNetwork to track conversions
Prerequisites: Google Mobile Ads Unity Plugin 5.4.0 or higher
The Google Mobile Ads SDK supports conversion tracking using Apple's
SKAdNetwork
,
which lets Google and participating third-party buyers attribute an app install
even when the IDFA is not available.
To enable this capability, update the SKAdNetworkItems
key with an
additional dictionary that defines Google and participating third-party buyers'
SKAdNetworkIdentifier
values in your
GoogleMobileAdsSKAdNetworkItems.xml
.
The snippet below includes Google (cstr6suwn9.skadnetwork
) and select
additional buyer SKAdNetwork
identifiers that have been
provided to Google. Google is committed to updating this list to include
additional buyers and to working with the industry on solutions to share
SKAdNetworkIdentifier
values more broadly. This page contains the latest
updates.
<SKAdNetworkItems>
<SKAdNetworkIdentifier>cstr6suwn9.skadnetwork</SKAdNetworkIdentifier>
<SKAdNetworkIdentifier>4fzdc2evr5.skadnetwork</SKAdNetworkIdentifier>
<SKAdNetworkIdentifier>2fnua5tdw4.skadnetwork</SKAdNetworkIdentifier>
<SKAdNetworkIdentifier>ydx93a7ass.skadnetwork</SKAdNetworkIdentifier>
<SKAdNetworkIdentifier>p78axxw29g.skadnetwork</SKAdNetworkIdentifier>
<SKAdNetworkIdentifier>v72qych5uu.skadnetwork</SKAdNetworkIdentifier>
<SKAdNetworkIdentifier>ludvb6z3bs.skadnetwork</SKAdNetworkIdentifier>
<SKAdNetworkIdentifier>cp8zw746q7.skadnetwork</SKAdNetworkIdentifier>
<SKAdNetworkIdentifier>3sh42y64q3.skadnetwork</SKAdNetworkIdentifier>
<SKAdNetworkIdentifier>c6k4g5qg8m.skadnetwork</SKAdNetworkIdentifier>
<SKAdNetworkIdentifier>s39g8k73mm.skadnetwork</SKAdNetworkIdentifier>
<SKAdNetworkIdentifier>3qy4746246.skadnetwork</SKAdNetworkIdentifier>
<SKAdNetworkIdentifier>hs6bdukanm.skadnetwork</SKAdNetworkIdentifier>
<SKAdNetworkIdentifier>mlmmfzh3r3.skadnetwork</SKAdNetworkIdentifier>
<SKAdNetworkIdentifier>v4nxqhlyqp.skadnetwork</SKAdNetworkIdentifier>
<SKAdNetworkIdentifier>wzmmz9fp6w.skadnetwork</SKAdNetworkIdentifier>
<SKAdNetworkIdentifier>su67r6k2v3.skadnetwork</SKAdNetworkIdentifier>
<SKAdNetworkIdentifier>yclnxrl5pm.skadnetwork</SKAdNetworkIdentifier>
<SKAdNetworkIdentifier>7ug5zh24hu.skadnetwork</SKAdNetworkIdentifier>
<SKAdNetworkIdentifier>gta9lk7p23.skadnetwork</SKAdNetworkIdentifier>
<SKAdNetworkIdentifier>vutu7akeur.skadnetwork</SKAdNetworkIdentifier>
<SKAdNetworkIdentifier>y5ghdn5j9k.skadnetwork</SKAdNetworkIdentifier>
<SKAdNetworkIdentifier>v9wttpbfk9.skadnetwork</SKAdNetworkIdentifier>
<SKAdNetworkIdentifier>n38lu8286q.skadnetwork</SKAdNetworkIdentifier>
<SKAdNetworkIdentifier>47vhws6wlr.skadnetwork</SKAdNetworkIdentifier>
<SKAdNetworkIdentifier>kbd757ywx3.skadnetwork</SKAdNetworkIdentifier>
<SKAdNetworkIdentifier>9t245vhmpl.skadnetwork</SKAdNetworkIdentifier>
<SKAdNetworkIdentifier>a2p9lx4jpn.skadnetwork</SKAdNetworkIdentifier>
<SKAdNetworkIdentifier>22mmun2rn5.skadnetwork</SKAdNetworkIdentifier>
<SKAdNetworkIdentifier>4468km3ulz.skadnetwork</SKAdNetworkIdentifier>
<SKAdNetworkIdentifier>2u9pt9hc89.skadnetwork</SKAdNetworkIdentifier>
<SKAdNetworkIdentifier>8s468mfl3y.skadnetwork</SKAdNetworkIdentifier>
<SKAdNetworkIdentifier>ppxm28t8ap.skadnetwork</SKAdNetworkIdentifier>
<SKAdNetworkIdentifier>uw77j35x4d.skadnetwork</SKAdNetworkIdentifier>
<SKAdNetworkIdentifier>pwa73g5rt2.skadnetwork</SKAdNetworkIdentifier>
<SKAdNetworkIdentifier>578prtvx9j.skadnetwork</SKAdNetworkIdentifier>
<SKAdNetworkIdentifier>4dzt52r2t5.skadnetwork</SKAdNetworkIdentifier>
<SKAdNetworkIdentifier>tl55sbb4fm.skadnetwork</SKAdNetworkIdentifier>
<SKAdNetworkIdentifier>e5fvkxwrpn.skadnetwork</SKAdNetworkIdentifier>
<SKAdNetworkIdentifier>8c4e2ghe7u.skadnetwork</SKAdNetworkIdentifier>
<SKAdNetworkIdentifier>3rd42ekr43.skadnetwork</SKAdNetworkIdentifier>
<SKAdNetworkIdentifier>3qcr597p9d.skadnetwork</SKAdNetworkIdentifier>
</SKAdNetworkItems>
Request App Tracking Transparency authorization
Prerequisites: Google Mobile Ads Unity Plugin 5.4.0 or higher
If you're not using the UMP SDK, the rest of this section shows you how to implement the OS-level ATT authorization request manually. To display the app tracking transparency (ATT) authorization request for accessing the IDFA, use Unity's iOS 14 Advertising Support package.
Publisher first-party ID, formerly known as same app key
Prerequisites: Google Mobile Ads Unity Plugin 6.1.0 or higher
The Google Mobile Ads Unity Plugin introduced Publisher first-party ID, formerly known as same app key to help you deliver more relevant and personalized ads by using data collected from your apps.
Publisher first-party ID is enabled by default, but you can disable it using the following method.
public void Start()
{
// Disables Publisher first-party ID, formerly known as same app key.
RequestConfiguration requestConfiguration = new RequestConfiguration
{
PublisherFirstPartyIdEnabled = false
};
MobileAds.SetRequestConfiguration(requestConfiguration);
// Initialize the Google Mobile Ads SDK.
MobileAds.Initialize(HandleInitCompleteAction);
}