I'm using Google Ads for my mobile app. Some of reasons ads doens't appear to app.
GoogleService-Info.plist is installed.
UPDATES :I created Admob Payment İnformation and updated simulator version 10.0 to 12.0 and this problem solved.
I added this 2 lines into my info.plist but didn't work :
<key>FIREBASE_ANALYTICS_COLLECTION_ENABLED</key>
<string>NO</string>
<key>FIREBASE_ANALYTICS_COLLECTION_DEACTIVATED</key>
<string>YES</string>
My AppDelegate.swift :
func application(_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions:
[UIApplication.LaunchOptionsKey: Any]?) -> Bool {
FirebaseApp.configure()
GADMobileAds.configure(withApplicationID: "My Firebase App id")
}
My ViewController.swift :
@IBOutlet weak var vieww: GADBannerView! // There is a view that GADBannerView Class
override func viewDidLoad() {
super.viewDidLoad()
let request = GADRequest()
request.testDevices = [kGADSimulatorID]
vieww.adUnitID = "Banner ID from Admob"
vieww.rootViewController = self
vieww.load(request)
}
Debug screen :
5.15.0 - [Firebase/Analytics][I-ACS023049] Analytics is disabled. Event not logged