Set up SKAdNetwork and conversion values
SKAdNetwork is Apple's attribution framework for app install and reinstall attribution. The SKAdNetwork workflow goes like this:
- Apple gathers attribution information and notifies the relevant ad network.
- The network sends a postback with this information to Adjust.
- Adjust displays SKAdNetwork data in Datascape and Data Canvas.
If you use Adjust to manage conversion values, the Adjust backend sends conversion value updates to the SDK. You can set up a delegate function to listen for these changes using the
SKAdNetwork 4.0 postbacks contain some additional information to give advertisers more insight into their users. When the Adjust backend updates conversion values, this additional information is sent in a payload. You can access this information with the
adjustConversionValueUpdated callback method.
Conversion values are a mechanism used to track user behavior in SKAdNetwork. You can map 64 conditions to values from 0-63 and send this integer value to SKAdNetwork on user install. This gives you insight into how your users interact with your app in the first few days.
If you manage your conversion values with Adjust, the backend updates this value in the SDK. You can also update this value by using the
updateConversionValue method. This method wraps Apple's
updateConversionValue method. It accepts an integer argument representing your updated conversion value.
The Adjust SDK contains wrappers for Apple's
updatePostbackConversionValue methods. These methods provide more options for handling SKAdNetwork postbacks, including the option to handle failures.
The following methods are supported:
updatePostbackConversionValue(_:completionHandler:)– update conversion values and handle failures.
updatePostbackConversionValue(_:completionHandler:coarseValue:)– update both fine and coarse conversion values and handle failures.
updatePostbackConversionValue(_:coarseValue:lockWindow:completionHandler:)– update both fine and coarse conversion values, determine whether to send the postback before the end of the conversion value window, and handle errors.
You can configure your app to send a copy of winning SKAdNetwork callbacks to Adjust. This enables you to use SKAdNetwork information in your analytics.
To set up direct install postbacks, you need to add the Adjust callback URL to your
Info.plistin the Project navigator in Xcode.
- Select the Add button (+) beside a key in the property list editor and press Return.
- Enter NSAdvertisingAttributionReportEndpoint as the key name.
- Set the Type to String in the pop up menu.
- Enter the URL https://adjust-skadnetwork.com.
See Apple's guide on Configuring an Advertised App for more information.
The Adjust SDK communicates with SKAdNetwork by default on v4.23.0 and above. The SDK registers for SKAdNetwork attribution upon initialization.
Your config object contains a boolean
isSKAdNetworkHandlingActive property that controls this behavior. You can disable SKAdNetwork communication by calling the
deactivateSKAdNetworkHandling method with no argument.
deactivateSKAdNetworkHandling method before initializing the Adjust SDK in your app.