@Environment(.requestReview) private var requestReview when showing admob banner ad with SwiftUI
If I define the ad is not loading and Invalid Request. Cannot determine request type. Is your ad unit id correct?
I get an error. It gets fixed when I remove it.
import SwiftUI import AppTrackingTransparency import StoreKit
struct RootView: View { @AppStorage("showingOnboarding") private var showingOnboarding = true @State var adsManager = AdsManager() @State private var selectionItem = 0 @Environment(.requestReview) private var requestReview
}
@Environment(.requestReview) private var requestReview when showing admob banner ad with SwiftUI If I define the ad is not loading and Invalid Request. Cannot determine request type. Is your ad unit id correct?
I get an error. It gets fixed when I remove it.