Contents

startImpression(_:completionHandler:)

Indicates that your app is presenting a view-through ad to the user.

Declaration

class func startImpression(_ impression: SKAdImpression, completionHandler completion: (@Sendable ((any Error)?) -> Void)? = nil)
class func startImpression(_ impression: SKAdImpression) async throws

Parameters

  • impression:

    An instance of Skadimpression with the properties set for the view-through ad that you’re presenting.

  • completion:

    The callback handler you provide to handle any tasks relevant to the start of the ad impression.

Mentioned in

Discussion

Call this method when you start presenting the view-through ad to the user. If you call startImpression(_:completionHandler:) more than once for the same advertised app before calling endImpression(_:completionHandler:), the latest impression overwrites the earlier impression.

Call endImpression(_:completionHandler:) when the impression ends and is no longer visible to the user.

See Also

Signing view-through ads