iad

iAd & AdMob Heavy on Memory

旧街凉风 提交于 2019-12-07 15:48:27
I've just completed coding my new game for the iOS platform and now I decided that it is time to integrate iAd/AdMob banners at the bottom of the screen. I have completed the implementation and an iAd is showing up and if it fails then it is replaced by an AdMob banner. This is great, however I checked over the memory consumption of the app and prior to iAd/AdMob integration, my app was running using around 19MB of memory - with the the iAd/AdMob integration, it is running using over 50MB of memory. I have two questions regarding this - are they supposed to be so memory-heavy like this or am I

Displaying banner ads with SpriteKit

假装没事ソ 提交于 2019-12-07 10:21:52
问题 I'm new to SpriteKit and just published my first game. Now I would like to add banner ads to the game. However, I'm completely lost. Most tutorials tell you to simply call self.canDisplayBannerAds = YES; in the viewDidLoad method. I'm doing that, and I also imported iAD.h and linked the required binaries. However, everytime I start the game it crashes and gives me the following error: -[UIView presentScene:transition:]: unrecognized selector sent to instance 0x15e2dd00 Does anybody know a

How to share iAd banner between views using AppDelegate

我的梦境 提交于 2019-12-07 09:57:45
问题 I am looking to implement iAd in my app. So far I have managed to get them showing/dismissing correctly in each view using the below. App Delegate: import UIKit import iAd @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? var adBannerView = ADBannerView() View Controller 1: import UIKit import iAd class HomeScreenViewController: UIViewController, UITableViewDelegate, UITableViewDataSource, ADBannerViewDelegate { let appDelegate = UIApplication

Calling interstitial iAd works only one time

别说谁变了你拦得住时间么 提交于 2019-12-07 08:20:46
问题 I have spritekit game, Ad is preloaded on each start of game with [UIViewController prepareInterstitialAds]; And after gameover it should display ad with [self.view.window.rootViewController requestInterstitialAdPresentation]; and it's works okay, but only first time. The ad's shows only one time. After failing another game, ad do not show though preload. Any suggestions? 回答1: Do you have it set up to where it runs [self.view.window.rootViewController requestInterstitialAdPresentation]; each

interstitialAd - iOS 8 beta 5 does not provide X close button in simulator

☆樱花仙子☆ 提交于 2019-12-06 16:22:16
I have a problem with interstitial ads from Apple. I'm doing my first app in swift, which I want to put on App store, as soon as it will be possible. But when I rewrite code for interstitial ads from obejctive-c to swift, I am able to show up the ad, but i does not have X close buuton, so I can not close it. I have not found anywher, taht I should place this button on my own, it should be there by default. I am using this functions: (I also have to say, that I'm using sprite kit, so my view controller automaticaly redirects game to Gamescene) func showFullScreenAd() { if requestingAd == false

How to make a single shared instance of iAd banner throughout many view controllers?

◇◆丶佛笑我妖孽 提交于 2019-12-06 15:11:42
I have tried using a singleton class in my app delegate but I haven't been able to get that to work. I've also checked out the iAdSuite examples (particularly the containerBanner example because it seemed to be the most relative) but I can't figure it out. If there's a better way to accomplish this without using a singleton class and you can point me in the right direction I'd really appreciate it. Some of my singleton class code is below. Thank you! @interface App Delegate @property (assign) iAdController *iadc; + (AppDelegate*) sharedApplication; - (iAdController*)sharedAd; @end

How to show iAd on a certain SKScene and hide it on the other one

妖精的绣舞 提交于 2019-12-06 13:49:36
I'm making a simple game and I would like to add an iAd at the top of the Game Over Screen. I could add it on to the UIViewController , but then it would show up while playing, which is something I don't want. Is there a way to make the iAd appear only on a certain SKScene ? Thanks for all your help! The most clean solution is to declare and implement a protocol to let the UIViewController know that it should hide the ad. @protocol MySceneDelegate <NSObject> - (void)hideAd; - (void)showAd; @end @interface MyScene : SKScene @property (weak) id <MySceneDelegate> delegate; @end View controller

App rejected due to Advertising Identifier (IDFA)

谁说我不能喝 提交于 2019-12-06 04:27:48
问题 My application was rejected due to the following reasons: You and Your Applications (and any third party with whom you have contracted to serve advertising) may use the Advertising Identifier, and any information obtained through the use of the Advertising Identifier, only for the purpose of serving advertising. If a user resets the Advertising Identifier, then You agree not to combine, correlate, link or otherwise associate, either directly or indirectly, the prior Advertising Identifier and

iAd & Admob Interstitial Integration on iPhone

白昼怎懂夜的黑 提交于 2019-12-06 03:45:37
问题 I'm currently using Admob GADInterstitial in my iPhone app, and would like to take advantage of the interstitials offered in the iAd UIViewController additions in iOS 7. My guess is that Apple's fill rate will not be that high, so I'd like to fall back to Admob if an ad isn't available. Unfortunately the API for iAd looks really opaque, and I don't see a way to determine if an ad is available. Has anyone successfully done this, and if so, how? 回答1: I missed that the manual presentation

updated to iOS4.1 and iAd “test advertisment” not showing up on simulator

元气小坏坏 提交于 2019-12-06 01:40:53
I added the iAd as written in tutorials and in my app it always calls didFailToReceiveAdWithError . bannerViewDidLoadAd is never invoked. I know I'm supposed to see a "test advertisment" Ad, but nothing shows up, because the function bannerViewDidLoadAd is never being invoked. I've looked into other questions, but didn't find an answer... I would have added code, but I suspect this is more of a misunderstanding between me and Steve. Thanks. UPDATE: Can someone please let me know if this problem also shows him in the console: Unhandled error (no delegate or delegate does not implement