updatePostbackConversionValue(_:coarseValue:completionHandler:)
Updates the fine and coarse conversion values, and calls a completion handler if the update fails.
Declaration
class func updatePostbackConversionValue(_ fineValue: Int, coarseValue: SKAdNetwork.CoarseConversionValue, completionHandler completion: (@Sendable ((any Error)?) -> Void)? = nil)class func updatePostbackConversionValue(_ fineValue: Int, coarseValue: SKAdNetwork.CoarseConversionValue) async throwsParameters
- fineValue:
An unsigned 6-bit value
≥0and≤63. The app or the ad network defines the meaning of the conversion value. - coarseValue:
An Coarseconversionvalue value. The app or the ad network defines the meaning of this value.
- completion:
An optional completion handler you provide to catch and handle any errors this method encounters when you update a conversion value. Set this value to
nilif you don’t provide a handler.
Mentioned in
Discussion
Call this method when the user first launches an app to register the app installation, and optionally again, to update conversion values as the user engages with the app.
This method is identical to calling updatePostbackConversionValue(_:coarseValue:lockWindow:completionHandler:) with the lockWindow parameter set to false.
This method returns SKANError.Code.invalidConversionValue if the fineValue is outside of the allowed range.