Saturday, November 7, 2026
HomeiOS Developmentios - AdMob -Can not discover an advert community adapter with the...

ios – AdMob -Can not discover an advert community adapter with the title(s): com.google.DummyAdapter

[ad_1]

pod 'Google-Cellular-Advertisements-SDK'
FirebaseAnalytics/AdIdSupport (8.9.1)
Firebase (8.9.1):
Xcode -Model 12.4 (12D4e)
iPad Simulator -12.9 inch third Technology

I am having this concern with banner advert testAdID items when rotating on an iPad to panorama.
For instance in Portrait the check advert reveals and works high quality however as soon as I rotate the iPad to panorama I get

Can not discover an advert community adapter with the title(s): com.google.DummyAdapter. Bear in mind to hyperlink all required advert community adapters and SDKs, and set -ObjC within the ‘Different Linker Flags’ setting of your construct goal.

The odd factor is as soon as I rotate again to portrait the advert seems.

This course of is continuous. The advert all the time reveals in portrait however nothing reveals in panorama with the identical above error message

I regarded in Goal > Construct Settings > All > Different Linker Flags and it was already set to Obj-C

enter image description here

code:

// referred to as in ViewDidLoad
func initializeAdMob() {
    
    let adMobKey = "ca-app-pub-3940256099942544/2934735716"
    
    bannerView.adUnitID = adMobKey
    bannerView.rootViewController = self
    bannerView.delegate = self
    
    let adSize = GADCurrentOrientationAnchoredAdaptiveBannerAdSizeWithWidth(body.measurement.width)
    bannerView.adSize = adSize
    
    view.addSubview(bannerView)
    bannerView.heightAnchor.constraint(equalToConstant: 50).isActive = true
    bannerView.leadingAnchor.constraint(equalTo: view.leadingAnchor).isActive = true
    bannerView.trailingAnchor.constraint(equalTo: view.trailingAnchor).isActive = true
    bannerView.bottomAnchor.constraint(equalTo: view.safeAreaLayoutGuide.bottomAnchor, fixed: -15).isActive = true

    bannerView.load(GADRequest())
}

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments