Pramod Tapaniya
Pramod Tapaniya

Reputation: 1266

Use of undeclared type 'GADUnifiedNativeAdLoaderDelegate'

I am trying to make a demo of this ads. While i follow this tutorial. Getting this error Use of undeclared type 'GADUnifiedNativeAdLoaderDelegate'. I am using the latest version of GoogleMobileAds.framework.

AppDelegate

import Firebase

func application(_ application: UIApplication,
      didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {

    FirebaseApp.configure()

    // Initialize the Google Mobile Ads SDK.
    GADMobileAds.configure(withApplicationID: "ca-app-pub-3940256099942544~1458002511")

    return true
  }

ViewController

import UIKit
import Firebase
import GoogleMobileAds

class ViewController: UIViewController, GADUnifiedNativeAdLoaderDelegate

Upvotes: 0

Views: 1271

Answers (1)

Pramod Tapaniya
Pramod Tapaniya

Reputation: 1266

I am using an older version(7.25.0) of Admob. The latest one is 7.29.0. When i have written pod 'Firebase/AdMob' in podfile at that time i got version 7.25.0. Then after i write pod 'Google-Mobile-Ads-SDK' so i got 7.29.0 version of AdMob.

Upvotes: 1

Related Questions