Sign in

A guide to adding v8 of the Google Mobile Ads SDK to your SwiftUI app and preparing it for iOS 14.5.


As more apps are built with SwiftUI, I wanted to provide an easy way for integrating Admob right into your app. In this guide, you’ll learn exactly how everything works. If you’d rather just drag and drop the code right into your app, that works too! (

I had planned on releasing this as a Cocoapod as well so integrating it would be even easier, but I ran into some issues. If these are resolved, check the aforementioned GitHub link for installation instructions.

Check this out to see how well this integrates into SwiftUI:

Let’s get started

Setting up the Google Mobile Ads SDK

Preparing your app for Admob is…

Patrick Haertel

HRTLabs — App Developer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store