Google Mobile Ads has rolled out full support for Apple’s iOS programming language Swift. The search engine giant revealed that a soaring number of requests from publishers and the evolution of Swift into a “dynamic, modern programming language” had prompted the change.
Apple originally launched Swift back in 2014 and made it open sourced at the end of last year. It has been increasingly used in the Google Mobile Ads SDK in recent months, which has now led to Google releasing a number of example apps that were developed using Swift. Google has also updated its developer docs with additional code snippets and extended Swift API reference docs to developer sites.
“The Google Mobile Ads SDK team is committed to supporting Swift, and we’ll continue to update our SDK, developer docs, and example apps to ensure we provide publishers with full support for the latest version of Swift,” Google Mobile Ads developer Tristan Emrich said.
He added: “Whether you currently develop your iOS apps in Swift, or have plans to do so in the future, we hope the actions we’ve taken to support Swift in our SDK will help make your experience with Swift more enjoyable and your transition to Swift a whole lot easier.”
Example apps
One of the example apps is called the API Demo app, which showcases a range of new features of the Google Mobile Ads SDK, such as multiple ad sizes, new customisation options for ad requests and the ability to compare both DFP and AdMob technologies. Google claims the app will streamline the end-user experience and help to maximise ad revenue.
Emrich also noted that there are now Swift example apps for native ads for DFP and AdMob, banners and interstitials within Google’s GitHub repo. Google said the latest changes aim to make it easier for developers and publishers to transition to Swift and that it’s committed to supporting the programming language through updates to developer docs and example apps for the foreseeable future.
Emrich concluded: “If you have any questions or feedback regarding our SDK or Swift support, feel free to contact us through our forum.”