"Request Error: No ad to show. " But I didn't have any update to the App.

178 views
Skip to first unread message

Fias system engineer

unread,
Mar 3, 2024, 7:53:10 PM3/3/24
to Google Mobile Ads SDK Developers
We have an iOS app that has been running ads for several months.
Until last November, we were getting tens of thousands of ad requests per month, but since December 1, that number has dropped to a few dozen.
Also, the test ads are no longer displayed even if app execute in XCode.

We have not updated the app at that time, nor have we changed any Admob settings.
The version of Google-Mobile-App-SDK is 10.9.0.

We have the same app on Android, and it seems to display fine here.
I have also submitted another app for Android and iOS, and there is no problem there either.
So we do not think that there is a problem with the Admob account itself.

Since I have not received any more requests since the beginning of the month, I am wondering if this is due to some kind of manipulation on Admob's part.
I would appreciate it if anyone has any idea as to the cause of the problem.

Some additional information
* The app-ads.txt file is already set up. Other apps are showing ads.
* There are no errors in Policy Center
* There is a Warning in the notification that says "Some apps are not configured to use Apple's SKAdNetwork." However, SKAdNetworkItems are already configured in Info.plist. Maybe it is because there are not enough SKAdNetworkItems for Meta Audience Network. I added SKAdNetworkItems for Meta locally and no ads appeared.

I asked the question in Japanese, but no one responded.
I will ask the question again in English.
I hope someone can help me.

Thank you.

More info I heard and did.

Mobile Ads SDK Forum Advisor

unread,
Mar 4, 2024, 12:04:49 AM3/4/24
to fia.sys...@gmail.com, google-adm...@googlegroups.com
Hi,

Thank you for contacting the Mobile Ads SDK support team.

Upon reviewing your concern i understood that you are unable to load the ads in iOS application. Kindly share below information via "Reply to author" option for further investigation:
  • app ID
  • ad unit ID
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02rzdM9:ref"

Thanks,
 
Google Logo Mobile Ads SDK Team


system fia

unread,
Mar 26, 2024, 1:35:11 AM3/26/24
to Google Mobile Ads SDK Developers
I left the group once by mistake, is the query still valid?
We look forward to hearing from you.

2024年3月4日月曜日 14:04:49 UTC+9 Mobile Ads SDK Forum Advisor:

Mobile Ads SDK Forum Advisor

unread,
Mar 26, 2024, 5:37:00 AM3/26/24
to fia.sys...@gmail.com, google-adm...@googlegroups.com

Hi,

I have executed our Google Sample Project with the provided information and am able to load the Ads successfully. Can you confirm whether you can replicate the same issue in our Google Sample Project too? If yes, kindly share the sample project privately for further investigation.

If the file(s) you are looking to share are less than 25mb in total you can attach them to this case on your next reply. If you are having trouble attaching your file to this case or if your file(s) are larger than 25mb, kindly provide requested information to us via reply to author option or using the steps below:

1. Navigate to

https://docs.google.com/forms/d/e/1FAIpQLSfkAiXMeYP-fw1W3Z-tT9uwmATEKO5X6S-th0gR2ezdKaaqfg/viewform?usp=pp_url&entry.400550049=Mobile+Ads+SDK&entry.460850823=5004Q00002rzdM9QAI&entry.80707362=00225697

2. Fill out all fields, and attach your file(s).

3. Please reply back on this thread when you have uploaded your file(s). Please do not share this link.

This message is in relation to case "ref:!00D1U01174p.!5004Q02rzdM9:ref" (ADR-00225697)


Thanks,
 
Google Logo Mobile Ads SDK Team


system fia

unread,
Mar 27, 2024, 4:52:43 AM3/27/24
to Google Mobile Ads SDK Developers
Thank you for your reply.

I check that I can not replicate the same issue in Google Sample Project.
So I think the cause is in my code.

Is it possible to send you an excerpt of the code so you can check for any problems?
Or I would be happy to send you the entire source code for you to check.
If you can check my app code, I share it with your Link.

AppDelegate.swift
------

    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        // Override point for customization after application launch.
        //srand(UInt32(Date().timeIntervalSinceReferenceDate))
        //UIApplication.shared.setStatusBarStyle(UIStatusBarStyle.lightContent, animated: true)
        // Revisit Facebook用の広告トラッキング設定。ここでいいのか不明
        FBAdSettings.setAdvertiserTrackingEnabled(true)

        if #available(iOS 14, *) {
//            ATTrackingManager.requestTrackingAuthorization(completionHandler: { status in
                GADMobileAds.sharedInstance().start(completionHandler: nil)
//            })
        } else {
            // Fallback on earlier versions
            GADMobileAds.sharedInstance().start(completionHandler: nil)
        }
        return true
    }
------

Admob.swift
------
import UIKit
import GoogleMobileAds
import AppTrackingTransparency

class Admob: NSObject, GADBannerViewDelegate {
   
    class var Instance: Admob {
        struct Static {
            static let inst: Admob = Admob()
        }
        return Static.inst
    }
   
    static func getAdBannerView(_ viewController: UIViewController) -> GADBannerView {
        var bannerView: GADBannerView = GADBannerView()
        if #available(iOS 14, *) {
            ATTrackingManager.requestTrackingAuthorization(completionHandler: {status in
                bannerView = GADBannerView(adSize:GADAdSizeBanner)
                bannerView.frame.origin = CGPoint(x: 0, y: 0)
                bannerView.frame.size = CGSize(width: 325, height: 50)
                bannerView.adUnitID = "ca-app-pub-8151928728657048/4727276862" // Enter Ad's ID here
                bannerView.delegate = Instance
                bannerView.rootViewController = viewController
               
                let request:GADRequest = GADRequest()
                //request.testDevices = [kGADSimulatorID, "e6cfec14a364685bacbcf949bb123f5a", "5890ffced044af1d8f8aa98ae704c77f"]
                //request.testDevices = [ kGADSimulatorID as! String, "9740bf7fbe1b3f0f7d7649a2d7a585b6" ];
                GADMobileAds.sharedInstance().requestConfiguration.testDeviceIdentifiers = [ GADSimulatorID as! String, "" ];
                bannerView.load(request)
            })
        } else {
            bannerView = GADBannerView(adSize:GADAdSizeBanner)
            bannerView.frame.origin = CGPoint(x: 0, y: 0)
            bannerView.frame.size = CGSize(width: 325, height: 50)
            bannerView.adUnitID = "ca-app-pub-8151928728657048/4727276862" // Enter Ad's ID here
            bannerView.delegate = Instance
            bannerView.rootViewController = viewController
           
            let request:GADRequest = GADRequest()
            //request.testDevices = [kGADSimulatorID, "e6cfec14a364685bacbcf949bb123f5a", "5890ffced044af1d8f8aa98ae704c77f"]
            //request.testDevices = [ kGADSimulatorID as! String, "9740bf7fbe1b3f0f7d7649a2d7a585b6" ];
            GADMobileAds.sharedInstance().requestConfiguration.testDeviceIdentifiers = [ GADSimulatorID as! String, "" ];
            bannerView.load(request)
        }
        return bannerView
    }
   
    static func shAdView(_ adHeight: NSLayoutConstraint) {
        if FileReader.checkAdTapExpired() {
            adHeight.constant = 50
        }
        else {
            adHeight.constant = 0
        }
    }
   
    func adViewDidReceiveAd(_ bannerView: GADBannerView) {

    }
   
    func adViewWillLeaveApplication(_ bannerView: GADBannerView) {
        FileReader.saveLastAdTapTime()
    }
}
------

code of displaying ads.
------

    @IBOutlet weak var adView: UIView!

 override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
       
        if #available(iOS 8.0, *) {
            processPool = WKProcessPool()
        }
       
        let notifc: NotificationCenter = NotificationCenter.default
        notifc.addObserver(self, selector: #selector(applicationWillEnterForeground), name: NSNotification.Name(rawValue: "applicationWillEnterForeground"), object: nil)
       
        let device = UIDevice.current.userInterfaceIdiom
        if device == UIUserInterfaceIdiom.pad {
            mMag = 1.5
        }
       
        buttonMenu = UIBarButtonItem(title: "☰", style: UIBarButtonItem.Style.plain, target: self, action: #selector(ViewCategorySelect.menuButtonTouched(_:)))
        buttonMenu.setTitleTextAttributes([NSAttributedString.Key.font : UIFont.systemFont(ofSize: 24)], for: UIControl.State())
        self.title = "DDR Score Manager A"
       
        if #available(iOS 14, *) {
            ATTrackingManager.requestTrackingAuthorization(completionHandler: { status in
            // Tracking authorization completed. Start loading ads here.
            // loadAd()
            })
        }

        adView.addSubview(Admob.getAdBannerView(self))
       
        //refresh()
       
        tableView.indicatorStyle = UIScrollView.IndicatorStyle.white
        tableView.backgroundColor = UIColor(white: 0, alpha: 0.8)
        tableView.delegate = self
        tableView.dataSource = self
       
        //FileReader.saveFilterCount(0)
        //FileReader.saveActiveFilterId(0)
        //performSegueWithIdentifier("modalMusicListUpdate",sender: nil)
    }
----


2024年3月26日火曜日 18:37:00 UTC+9 Mobile Ads SDK Forum Advisor:
Reply all
Reply to author
Forward
0 new messages