Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot find type 'GADRequestError' in scope

Tags:

xcode

ios

swift

I'm trying to integrate AdMob into my app. I've imported GoogleMobileAds into my MainViewController, but Xcode is showing an error message.

Error message - Cannot find type 'GADRequestError' in scopeenter image description here

enter image description here

like image 742
Sam Avatar asked Feb 11 '21 19:02

Sam


1 Answers

The SDK reference declares the method as:

optional func bannerView(_ bannerView: GADBannerView, didFailToReceiveAdWithError error: Error)

Try using that instead.

like image 174
rocky Avatar answered Oct 10 '22 09:10

rocky