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 months ago
Projects targeting users running iOS 14 or later must implement advertiser network IDs in the file. Including an array of verified network IDs enables ad sources to properly attribute their ad spend by using Apple's framework.
Info.plistSKAdNetworkWhen implemented with Unity Ads version 3.5.1 and later, Unity and other trusted ad sources use these IDs to confidently bid on publisher inventory. To help publishers save time and energy, Unity provides an updated list of advertiser IDs across the industry to include in their files and avoid missing out on potential revenue.
plistInclude 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.plistare as expected. If necessary, manually add any additionalSKAdNetworkItemsdictionaries to the array.SKAdNetworkIdentifier
If you also have the Unity Advertisement package installed, then this will happen without any action needed by you. However, if you aren't using the Unity Advertising package, then you'll need to follow these steps:
- 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 - Select 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
For more information on editing the property list, refer to the Xcode documentation.
Update network IDs in Xcode
The Unity 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
plistkey and paste the XML you copied from the Monetization dashboard into the array. For example:SKAdNetworkItems
<key>SKAdNetworkItems</key><array> <! -- paste copied XML dictionaries here--></array>
Next steps: Refer to documentation on ATT compliance.