Note:
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:
Parameter | Description | Type | Required |
---|---|---|---|
conversionValue | A 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. | number | Yes |
coarseValue | SKAdNetworkCoarseType 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 | SKAdNetworkCoarseType | No |
lockWindow | Whether to send callbacks within the conversion window. YES: send callbacks before the conversion window ends. NO: (default) | Boolean | No |
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.