/iOS-Admob-SwiftUI-example

Example for using AdMob Native Ads in SwiftUI's view

Primary LanguageSwift

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:

  1. UnifiedNativeAdView.xib -> NativeAdView.xib
  2. GADUnifiedNativeAdLoaderDelegate -> GADNativeAdLoaderDelegate
  3. GADUnifiedNativeAd -> GADNativeAd
  4. GADUnifiedNativeAdDelegate -> GADNativeAdDelegate

This example does not include 'Main.storyboard / ViewController Scene' that was in the original sample code.

Documentation

developer site

developer site (Native Ads)

License

Apache 2.0 License