Configure ad network IDs
Configure SKAdNetwork IDs in your app to ensure proper ad attribution and support iOS 14 monetization requirements.
Read time 2 minutesLast updated 3 hours ago
Projects targeting users running iOS 14 or later must implement advertiser network IDs in the
Info.plist
SKAdNetwork
plist
Include ad network IDs in Unity
When you build your application in the Unity Editor, the iOS 14 Support package automatically adds an updated list of advertising sources to your game's Info.plist file:- Build your project for iOS.
- Check the resulting file to ensure that your
Info.plist
are as expected. If necessary, manually add any additionalSKAdNetworkItems
dictionaries to the array.SKAdNetworkIdentifier
- Create a new file anywhere in the Assets folder of your Unity project and name it with no extension.
SKAdNetworks
- Open the file with a text editor and paste the SKAdNetwork URL into your file, then save it. Unity will periodically update the list at this address to make sure the ad network IDs in your project updates each time you build your application.
https://skan.mz.unity3d.com/v3/partner/skadnetworks.plist.json
Include ad network IDs in Xcode
To include network IDs in your Xcode project:- In the Xcode project navigator, select .
Info.plist
- Click the add button (+) beside any key in the property list editor to create a new property key.
- Enter the key name .
SKAdNetworkItems
- For the value type, select .
Array
- For each network ID you want to include, add a key-value pair to the array where the key is and the value is the network ID string.
SKAdNetworkIdentifier
Update network IDs in Xcode
The Unity Ads Monetization dashboard has a feature that detects whether your live game is missing any recommended network IDs. This can save you time and effort cross-referencing your project's plist settings against the updated list of IDs.- With your project selected, select Project Settings in the left navigation menu.
- Scroll to the Missing SKAdNetwork IDs setting, then select Copy missing SKAdNetwork IDs.
- Open your project's file in a text or code editor.
Info.plist
- In the file, locate the
plist
key and paste the XML you copied from the Monetization dashboard into the array. For example:SKAdNetworkItems
Next steps: Refer to documentation on ATT compliance.<key>SKAdNetworkItems</key> <array> <! -- paste copied XML dictionaries here--> </array>