Menu

Set SKAdNetwork and Conversion Values

Note:

  • This feature is available for iOS 14 or later.
  • To use this feature, you need to add the StoreKit.framework to your project.


Update Conversion Values

Conversion values are used to track user actions within the SKAdNetwork. You can map 64 conditions to conversion values ranging from 0 to 63 and send this integer value to the SKAdNetwork during user installation. This information helps you understand how users interact with your app in the initial days after installation.

You can update the conversion value using the "updateConversionValue" method. This method includes Apple's updateConversionValue method to receive the updated conversion values.

Function

export function updatePostbackConversionValue(conversionValue:number,  
                                coarseValue?:SKAdNetworkCoarseType,  
                                lockWindow?:Boolean):  Promise<Object|null> ;

Parameter description:

ParameterDescriptionTypeRequired
conversionValueA conversion value ≥0 and ≤63.
You can assign it to a specific install. It will help you understand the value of the user without identifying the user's personal information.
numberYes
coarseValueSKAdNetworkCoarseType corresponds to SKAdNetworkCoarseConversionValue, which represents coarse conversion values. If the number of app installs does not reach the privacy threshold, coarse conversion values will be enabled. The following options are supported:
High, Low, Medium
SKAdNetworkCoarseTypeNo
lockWindowWhether to send callbacks within the conversion window.
YES: send callbacks before the conversion window ends.
NO: (default)
BooleanNo

Sample Code

let conversionValue:number = 5;
let coarseValue:string =  SKAdNetworkCoarseType.High;
let lockWindow:Boolean = false;
let promise = SolarEngine.updatePostbackConversionValue(conversionValue,coarseValue,lockWindow);
promise.then((error:Object|null) => {
  log("updatePostbackConversionValue error: " + JSON.stringify(error));
});


Set Install Callback

       It is required to define the SolarEngine SDK as the receiver of SKAdNetwork callbacks.

  1. In Xcode, navigate to the project navigator and select the Info.plist file.
  2. Click the "+" button in the "Property" list editor and press the Enter key.
  3. Enter "NSAdvertisingAttributionReportEndpoint".
  4. From the popup menu in the "Type" column, select "String".
  5. Enter  https://detailroi.com .


Previous
iOS ATT Authorization
Next
Deep Linking
Last modified: 2024-12-05Powered by