iOS 14 Network Support
Starting in iOS 14, IDFA will be unavailable until an app calls the App Tracking Transparency framework to present the app-tracking authorization request to the end-user. If an app does not present this request, the IDFA will automatically be zeroed out which may lead to a significant loss in ad revenue.
App Tracking Transparency
Download Unity App Tracking Transparency Plugin
Import Unity App Tracking Transparency Plugin to your project.
Extend your class with IAppodealAppTrackingTransparencyListener:
YourClassName : IAppodealAppTrackingTransparencyListener
Call AppodealAppTrackingTransparency.RequestTrackingAuthorization(this);
to present the App Tracking Transparency authorization request alert. Call this method at the application launch event. We recommended initializing Appodeal SDK in the completion block.
AppodealAppTrackingTransparency.RequestTrackingAuthorization(this);
Now you can use the following callback methods within your public class
:
public void AppodealAppTrackingTransparencyListenerNotDetermined(){ Debug.Log("AppodealAppTrackingTransparencyListenerNotDetermined"); } public void AppodealAppTrackingTransparencyListenerRestricted(){ Debug.Log("AppodealAppTrackingTransparencyListenerRestricted"); } public void AppodealAppTrackingTransparencyListenerDenied() { Debug.Log("AppodealAppTrackingTransparencyListenerDenied"); } public void AppodealAppTrackingTransparencyListenerAuthorized() { Debug.Log("AppodealAppTrackingTransparencyListenerAuthorized"); }
SKAdNetwork support
Ad networks used in Appodeal mediation support conversion tracking using Apple's SKAdNetwork
, which means ad networks are able to attribute an app install even when IDFA is unavailable. To enable this functionality, you will need to update the SKAdNetworkItems
key with an additional dictionary in your Info.plist
.
- Select Info.plist in the Project navigator in Xcode
- Click the Add button (+) beside a key in the property list editor and press Return
- Type the key name SKAdNetworkItems
- Choose an Array type
- Add Key-Value pair where the key is SKAdNetworkIdentifier and the value is the ad network identifier
There is the table of Ad Networks that support SKAdNetwork attribution and SKAdNetworks IDs in
Info.plist format: