Asserting iOS Google Cell Adverts SDK Model 11.0.0
In the present day, we’re asserting that model 11.0.0 of the Google Cell Adverts SDK is now accessible. We suggest upgrading as quickly as potential to get our newest options and efficiency enhancements.
Simplified SwiftUI improvement
Model 11.0.0 now not requires publishers to declare a view controller to current full-screen advertisements. Because of this, SwiftUI Publishers can now current full-screen advertisements with out the necessity for UIKit or UIViewControllerRepresentable workarounds. See our SwiftUI information for extra info.
struct ContentView: View {
personal let adCoordinator = AdCoordinator()
var physique: some View {
...
Button("Watch an advert") {
adCoordinator.showAd()
}
}
}
personal class InterstitialAdCoordinator: NSObject, GADFullScreenContentDelegate {
personal var interstitial: GADInterstitialAd?
...
func showAd() {
guard let interstitial = interstitial else {
return print("Advert wasn't prepared")
}
// The SDK makes use of the app's foremost window to search for view controllers
// robotically when one isn't supplied.
interstitial.current(fromRootViewController: nil)
}
}
Proceed gathering person metrics in AdMob
The Google Cell Adverts SDK dependency on GoogleAppMeasurement has been eliminated. This dependency that powered the person metrics toggle in AdMob can be discontinued in early 2024. To proceed gathering person metrics in AdMob, hyperlink your AdMob app to Firebase and combine the Google Analytics for Firebase SDK into your app.
Modifications to minimal OS and Xcode necessities
- The minimal OS model to load advertisements has been bumped from 12 to 13. Functions can nonetheless be constructed for iOS 12, however the SDK will solely load advertisements on iOS 13 and better.
- The minimal supported Xcode model has been bumped to fifteen.1.
For the total record of modifications, test the launch notes. Examine our migration information to make sure your cellular apps are able to improve.
SDK Deprecation Reminder
Per the deprecation schedule, the discharge of model 11.0.0 signifies that:
- iOS Google Cell Adverts SDK variations 9.x.x are formally deprecated, and can sundown in Q2 2025.
- Variations 8.x.x and under will sundown in Q2 2024, roughly 60 days following the discharge of Android Google Cell Adverts SDK main model 23.0.0.
- Whereas there are at the moment no plans to disable advert serving on model 8.x.x, we strongly suggest updating to a supported SDK model to keep away from being impacted sooner or later.
As all the time, in case you have any questions or want extra assist, contact us by way of the developer discussion board.