---
title: endView()
framework: adattributionkit
role: symbol
role_heading: Instance Method
path: adattributionkit/appimpression/endview()
---

# endView()

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

## Declaration

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

## Discussion

Discussion End the view-through impression, as the following example shows:    func handleAdDisappeared(impression: AppImpression) async {        do {            try await impression.endView()        }        catch {            print("Failed to end view-through impression: \(error).")        }    }

## See Also

### Displaying view-through ads

- [beginView()](adattributionkit/appimpression/beginview().md)
- [handleView()](adattributionkit/appimpression/handleview().md)
