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)
- Xcode Version 12.4
- iOS Deployment target 14.4
- Google-Mobile-Ads-SDK Version 8.4.0
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.