問題
AdMobを使ってiOSアプリにバナー広告を出したいのですが、ストアにリリースしたアプリに広告が出ません。
調査しても解決出来ないので、ぜひお力添えいただきたいです。
現状
・広告ユニットIDをテスト用にするとテスト広告が表示されます。
・アプリはリリースしてから1ヶ月以上経っています。
該当のソースコード
該当箇所のソースを載せます。
AppDelegate
1func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { 2 // Override point for customization after application launch. 3 FirebaseApp.configure() 4 GADMobileAds.configure(withApplicationID: "取得したアプリID") 5 return true 6 }
BaseViewController
1bannerView = GADBannerView(adSize: kGADAdSizeBanner) 2bannerView.adUnitID = (取得した広告ユニットID) 3bannerView.rootViewController = self 4bannerView.load(GADRequest()) 5bannerView.delegate = self 6bannerView.translatesAutoresizingMaskIntoConstraints = false 7view.addSubview(bannerView) 8view.addConstraints( 9 [NSLayoutConstraint(item: bannerView, 10 attribute: .bottom, 11 relatedBy: .equal, 12 toItem: bottomLayoutGuide, 13 attribute: .top, 14 multiplier: 1, 15 constant: 0), 16 NSLayoutConstraint(item: bannerView, 17 attribute: .centerX, 18 relatedBy: .equal, 19 toItem: view, 20 attribute: .centerX, 21 multiplier: 1, 22 constant: 0) 23 ])
###知りたいこと
・どんな原因が考えられるでしょうか?
・広告ユニットIDを本番用にした場合、TestFlightでも確認出来るのでしょうか?
不足情報等あれば掲載します。
よろしくお願い致します。
回答2件
あなたの回答
tips
プレビュー