<!--
{
  "availability" : [
    "iOS: 17.4.0 -",
    "iPadOS: 17.4.0 -",
    "macCatalyst: -"
  ],
  "documentType" : "symbol",
  "framework" : "AdAttributionKit",
  "identifier" : "/documentation/AdAttributionKit/AppImpression/handleTap()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AdAttributionKit"
    ],
    "preciseIdentifier" : "s:16AdAttributionKit13AppImpressionV9handleTapyyYaKF"
  },
  "title" : "handleTap()"
}
-->

# handleTap()

Processes click-through interactions on your custom rendered ad content.

```
func handleTap() async throws
```

## 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 <doc://com.apple.documentation/documentation/UIKit/UIEventAttributionView>
on top of your ad content before calling `handleTap()`, as the following example shows:

```swift
   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).")
       }
   }    
```

> Note: This method is only available for 15 minutes after you create the `impression`. After 15 minutes, you need to initialize a
> new `AppImpression` instance if you want to use the click-through ad API. This limitation doesn’t apply to
> view-through ads. For more information on view-through and click-through ads,
> see <doc://com.apple.AdAttributionKit/documentation/AdAttributionKit/presenting-ads-in-your-app>.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)