iad

iAds giving ADInternalErrorCode=3, inventory unavailable 100% of the time

人盡茶涼 提交于 2019-12-25 05:35:16
问题 I have an iAd banner and fullscreen ad, that both were working just last night. The banner was loading much more often than the fullscreen ad, but they were coming up at least some of the time. This morning i have been at it for 3 hours and not seen a single iAd displayed on my iPad 2. I keep getting the error Domain=ADErrorDomain Code=3 "The operation couldn’t be completed. Ad inventory unavailable" UserInfo=0x49a4f0 {ADInternalErrorCode=3, NSLocalizedFailureReason=Ad inventory unavailable}

iAd on webview - iphone

谁说胖子不能爱 提交于 2019-12-25 04:41:02
问题 I have a big problem, I have an app with a database, inside this database I stored an html page that i display on a uiwebview...there is a way for put an iAd inside webview? 回答1: Don't put the iAd view in the UIWebView, make the UIWebView smaller and add the iAd view as a sibling of the UIWebView. 回答2: The iAd framework has a didFailToReceiveAdWithError: method that will get called if there is an issue pulling a new ad. If you have an Apple Developer account there is a video from WWDC 2010

Swift SpriteKit iAd

流过昼夜 提交于 2019-12-25 03:44:16
问题 I'm developing a game in Swift and I have a little problem that I couldn't solve. I'm working only with scenes, I have no UIViews. The main scene is where the game runs and when the players dies a new scene will be loaded. I want in that scene, where the player dies, to display a menu (which I did) and to display iAd banners. I tried also with UIViewControllers but I couldn't manage it. I want to make it only in SpriteKit and I don't know how. Could anybody help me please? 回答1: If you simply

iAd appears on simulator but not on device

孤街浪徒 提交于 2019-12-25 01:55:07
问题 When I run app on simulator(4.0), iAd is appearing as Test advertisements. But when I deployed the app on ipod(4.0) , iAd is not appearing, even as Test advertisements. Please help me out as early as possible... I m from India... Regards... 回答1: Where are you from? Maybe iAd is not available in your Country!. Be sure your device is connected to Internet (WiFi or 3G). To implement iAd in your application you need to import the iAd framework to your project and #include it to the ".h" of the

Test iAds won't load

为君一笑 提交于 2019-12-25 01:23:55
问题 I've been scratching my head about this for a couple of days. I can't get iAds to show up in the simulator (or real hardware). I filled out all the contract information on iTunes Connect Created a development provisioning profile for the app Linked the iAd framework and imported it at the top of the ViewController's swift file Made the ViewController a subclass of ADBannerViewDelegate implemented 3 methods for the delegate (see below) I can't figure out why the test ads aren't loading. Has

iAd UIImageView memory leak

与世无争的帅哥 提交于 2019-12-24 19:08:18
问题 Running my app on device using Instruments tells me that iAd is leaking on a UIImageView (namely the ad). Does anyone know what this is about and how to fix it? 回答1: Raise a bug report with Apple 回答2: You need to release iAd in viewDidUnload 来源: https://stackoverflow.com/questions/3332272/iad-uiimageview-memory-leak

iAd didFailToReceiveAdWithError not working sometimes, displays white box

杀马特。学长 韩版系。学妹 提交于 2019-12-24 17:42:45
问题 I'm using Swift and SpriteKit, and everything is made inside my GameViewController and GameScene. This is all code concerning the ads inside my GameViewController: class GameViewController: UIViewController, ADBannerViewDelegate, GADBannerViewDelegate { var adBannerView: ADBannerView! var gadBannerView: GADBannerView! var bannerDisplayed = false var bannerNow = "iAd" override func viewDidLoad() { super.viewDidLoad() if let scene = GameScene.unarchiveFromFile("GameScene") as? GameScene { //

iAd banner rotates my view to landscape

帅比萌擦擦* 提交于 2019-12-24 14:42:55
问题 Views in my app are portrait only - my view controllers and the root view controller both ensure that they only rotate to portrait orientations using both shouldAutorotateToInterfaceOrientation: and supportedInterfaceOrientations in order to support both iOS 5 and iOS 6. I've added an iAd banner to a view, and it appears correctly at the top of the screen. When I tap it to see a test ad on the iPad, the test ad appears in lanscape, which I expect - I understand iAds may be in any orientation.

Interstitial ads from iAd aren't working on swift

﹥>﹥吖頭↗ 提交于 2019-12-24 13:25:20
问题 I'm trying to implement interstitial ads however my code doesn't seem to work. class ViewController: UIViewController, ADInterstitialAdDelegate { var interAd = ADInterstitialAd() var interAdView: UIView = UIView() var closeButton = UIButton.buttonWithType(UIButtonType.System) as! UIButton override func viewDidAppear(animated: Bool) { closeButton.frame = CGRectMake(10, 10, 20, 20) closeButton.layer.cornerRadius = 10 closeButton.setTitle("x", forState: .Normal) closeButton.setTitleColor(UIColor

Detect and ignore touches on iAd banners

别来无恙 提交于 2019-12-24 12:33:50
问题 I have a Sprite Kit game that first displays a menu screen. The game starts when you tap anywhere on the screen. I am displaying iAd's. The problem I have is when a user taps the iAd banner to view the add, GameScene is responding to the tap and starting the game. Ideally I want to detect that the touch was on the iAd banner and not start the game in this case. GameScene.m -(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { // I dont want to start game if the touch was on the