iOS-Admob-SwiftUI-example
iOS-Admob-SwiftUI-example copied to clipboard
Example for using AdMob Native Ads in SwiftUI's view
Google Mobile Ads Native Advanced Example for iOS
This repository is a example for using AdMob Native Ads in SwiftUI's view.
This sample code is based on Google's examples.
Google Mobile Ads iOS Examples v7.22 (Native Advanced Example)
Development Environment for this project
- Xcode Version 12.4
- iOS Deployment target 14.4
- Google-Mobile-Ads-SDK Version 8.4.0
Other
Some names changed in recent original sample code, so I've renamed the following:
- UnifiedNativeAdView.xib -> NativeAdView.xib
- GADUnifiedNativeAdLoaderDelegate -> GADNativeAdLoaderDelegate
- GADUnifiedNativeAd -> GADNativeAd
- GADUnifiedNativeAdDelegate -> GADNativeAdDelegate
This example does not include 'Main.storyboard / ViewController Scene' that was in the original sample code.