handleTap()
Processes click-through interactions on your custom rendered ad content.
Declaration
func handleTap() async throwsMentioned in
Discussion
Handle a person tapping your ad content by calling the app impression’s handle tap method.
If the system can validate that person tapped, it attempts to either launch one of the installed marketplaces to show the product page to install the advertised app, or it performs a reengagement if someone already has the advertised app installed, and opens it directly.
This API requires that you place a UIEventAttributionView on top of your ad content before calling handleTap(), as the following example shows:
func handleAdTapped(impression: AppImpression) async {
do {
// This fails if a person didn't tap a `UIEventAttributionView`.
try await impression.handleTap()
}
catch {
print("Failed to perform click-through impression: \(error).")
}
}