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

# endView()

Ends the view-through impression when the ad content corresponding to the impression disappears.

```
func endView() async throws
```

## Discussion

End the view-through impression, as the following example shows:

```swift
   func handleAdDisappeared(impression: AppImpression) async {
       do {
           try await impression.endView()
       }
       catch {
           print("Failed to end view-through impression: \(error).")
       }
   }    
```

---

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)