iad

iAd not showing banner ads

时光总嘲笑我的痴心妄想 提交于 2019-12-11 03:40:48
问题 I am building an app in which I want to us iAd banners. the viewcontroller in which I want to show the ad is a UIViewController. I am using storyboards. I implemented the iAd banner exactly as apple shows/demonstrates here: add iAd framework import "<iAd/iAd.h>" header inserted self.canDisplayBannerAds = YES; but when I run my app, no iAd is showing up. do I forget something? Thank you so much in advance 回答1: I had a bit different issue, but the answer fits to your question as well. I updated

AdBannerView shared across multiple views, including the rootviewcontroller, how?

谁说胖子不能爱 提交于 2019-12-11 03:38:24
问题 No answers yet, but i've got an update that seems to have fixed the problem, any ideas why it works now though?! I've got it to work in the way I intended by doing the following to every class that needs to display an adBanner: 1. In the layoutForCurrentOrientation method I added the following: adBanner.delegate = self; [self.view addSubview:adBanner]; 2. In the deAlloc method on each class, I removed the following: [adBanner removeFromSuperview]; Original question: I'm attempting to use the

iAd works in iPhone but not iPad

二次信任 提交于 2019-12-11 03:12:15
问题 I have just uploaded my first app to the app store that was only designed for iPhone/iPod. It works, and the iAd functions work when it runs on a iPhone or iPod, but when it's run on an iPad, and it can be zoomed in and things, the iAd banners aren't loading. No errors are generated, but the ad banners don't load. Does anyone have any ideas? I tried changing the app to universal and then it works, but the layout changes. Is there a way for the iAds to work on a zoomed-in iPad version, or is

Monotouch.Dialog and iAds

我们两清 提交于 2019-12-11 02:39:02
问题 I'm playing with iAds. I want to add it to an app that is basically a bunch of Monotouch.Dialog views. Is the best practise to add a UIViewController , then add a ADBannerView and a Monotouch.Dialog to it , or should I add the iAds view to the Monotouch.Dialog ViewController? 回答1: I created a wrapper ViewController that works nicely, just pass in the main app's view like a TabBar or SplitView etc and use IADViewController as the RootViewCOntroller: public partial class IADViewController :

App Ready For Sale, but iAd “receiving test ads”!

天涯浪子 提交于 2019-12-10 19:56:40
问题 My free app was approved on 17 June. And TODAY (22nd June) in my iAd iTC page it still says "Receiving test ads". Im a non US developer, so there is no way to check what is showing in my app in the US. Im seeing requests as well. But 0 impression. Revenue is lost definitely. Btw some info about my app: My iTC app's iAd setting is enabled. My app is built and submitted using XCode4. During testing, test ads appears normally both in device and sim. My other ad (i use admob when iAd fails) is

Pause SpriteKit Scene when iAd is clicked in Swift

混江龙づ霸主 提交于 2019-12-10 19:07:22
问题 I'm implementing banner ads in my game. With the help of @erdekhayser the banner was displayed successfully. But when I tap on the banner, the game won't pause. The code looks like this: import UIKit import SpriteKit import iAd import Foundation class GameViewController: UIViewController, ADBannerViewDelegate{ var gameScene = GameScene() var adBannerView = ADBannerView(frame: CGRect.zeroRect) func loadAds() { adBannerView.center = CGPoint(x: adBannerView.center.x, y: view.bounds.size.height -

iAd interstitial delegate methods doesn't get called

烂漫一生 提交于 2019-12-10 16:59:44
问题 I want to use interstitial ads in my app, so I implemented all necessary delegate methods. The problem is, if I use [self requestInterstitialAdPresentation] to show the ad, only the interstitialAdDidLoad: method gets called. The interstitialAdActionDidFinish: methods doesn't get called... But if I use the deprecated [self.interstitial presentFromViewController:self] to show the ad, everything works. Is there anything new to implement to get things work ? Thanks in advance 回答1: Ok, I resolved

Hiding iAd ADBannerView in Swift when ad fails to load - no delegate or delegate does not implement didFailToReceiveAdWithError

半世苍凉 提交于 2019-12-10 13:54:01
问题 This is the code I am using: var bannerView = ADBannerView() self.canDisplayBannerAds = true //show ad banner if an ad loads func bannerViewDidLoadAd(banner: ADBannerView!) {bannerView.hidden = false} //hide ad banner if the ad fails to load func bannerViewFailsToLoadAd(banner: ADBannerView!,didFailToReceiveAdWithError error: NSError!) {bannerView.hidden = true println("failed to receive ad")} When I set the iAd fill rate to 0% nothing is printed and I get this output from the console:

iAds Loading Throttled After Re-Launching App From Background (Also Happens In iAdSuite)

最后都变了- 提交于 2019-12-10 12:34:56
问题 I am trying to implement the NavigationBanner iAdSuite example into my project so that a I can share a single AdBannerView instance across multiple view controllers, but I keep getting the following error: Error Domain=ADErrorDomain Code=2 "The operation couldn’t be completed. Loading throttled I have copied the relevant code exactly from the current iAdSuite into my own app and am getting this error. In fact, this error is repeatable in Apple's own iAdSuite example for NavigationBanner

iAd Banner Displays With Portrait Orientation Even Though Window is Landscape

拈花ヽ惹草 提交于 2019-12-10 11:55:27
问题 I have a landscape only app that I am trying to get working on iOS8. I am trying to create an iAd banner that displays across the bottom of the landscape view. However, when the ad banner displays, it displays across the center of the view and in a portrait orientation. Here is how I set up the views: app = (AppDelegate *)[[UIApplication sharedApplication] delegate]; // Init the Ad View Controller (viewController is defined as a UIViewController) viewController = [[AdViewController alloc]