Contents

beginView()

Begins recording a view-through impression when ad content corresponding to the impression becomes visible.

Declaration

func beginView() async throws

Discussion

Begin the view impression process by calling beginView(), as the following example shows:

   func handleAdAppeared(impression: AppImpression) async {
       do {
           try await impression.beginView()
       }
       catch {
           print("Failed to begin view-through impression: \(error).")
       }
   }

See Also

Displaying view-through ads