@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 { https://github.com/AppStorage("showingOnboarding") private var showingOnboarding = true https://github.com/State var adsManager = AdsManager() https://github.com/State private var selectionItem = 0 @Environment(.requestReview) private var requestReview
var body: some View { TabView(selection: $selectionItem){ MainView(selectionTabItem: $selectionItem) .tabItem { Label("Başlangıç", systemImage: "house") .environment(.symbolVariants, selectionItem == 0 ? .fill : .none) } .tag(0)
} }
@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.