Why GADBannerView is un declared ?

11 views
Skip to first unread message

iSimoo

unread,
Aug 11, 2022, 3:38:09 PM8/11/22
to Google Mobile Ads SDK Developers
Hello iOS Devs,

I can't find GADBannerView in the Custom Class, it seems that it is not declared!

I followed the instructions for Cocoapods installation as per the documentation below
https://developers.google.com/admob/ios/banner

My Podfile is like this:

# Uncomment the next line to define a global platform for your project

# platform :ios, '9.0'

target 'CountMe App' do

  # Comment the next line if you don't want to use dynamic frameworks

  use_frameworks!

  # Pods for CountMe App

pod 'Google-Mobile-Ads-SDK'

end


In the (.xcworkspace ) project I imported the Google Mobile Ads in the AppDelegate _ ViewController files as below:

import GoogleMobileAds


I also did all the below steps to ensure everything was alright.

  1. Clean (Cmd+Shift+K) and Rebuild project.
  2. pod install —repo-update.
  3. Deleted all the files and folders under ‘DerivedData’ folder
    rm -rf ~/Library/Developer/Xcode/DerivedData/
    rm -rf ~/Library/Caches/CocoaPods/
  4. pod deintegrate        (Inside Project Directory)
  5. pod update                (Inside Project Directory)

Still GADBannerView undeclared and not showing the custom class drop menu! 


Mobile Ads SDK Forum Advisor

unread,
Aug 11, 2022, 3:50:31 PM8/11/22
to let....@gmail.com, google-adm...@googlegroups.com
Hi iSimoo,

Thank you for reaching out to us.

I've tried our sample banner app and was able to use the GADBannerView through Interface Builder. I also able to load test ads on my end (please see attached screenshot). With this, could you please try our sample app , and let me know how it goes?

Regards,
Google Logo
Teejay Wennie
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2dJrPO:ref
Screen Shot 2022-08-12 at 3.46.39 AM.png

Hackles

unread,
Aug 11, 2022, 4:54:23 PM8/11/22
to Google Mobile Ads SDK Developers
2022
Reply all
Reply to author
Forward
0 new messages