iad

Calling interstitial iAd works only one time

痴心易碎 提交于 2019-12-05 14:52:55
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? Do you have it set up to where it runs [self.view.window.rootViewController requestInterstitialAdPresentation]; each time the game ends? Brad See the answer by gj15987 here... requestInterstitialAdPresentation Works only one

How to share iAd banner between views using AppDelegate

末鹿安然 提交于 2019-12-05 12:20:50
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.sharedApplication().delegate as AppDelegate //Creates reference to the AppDelegate override func

Interstitial iAD: How to detect closing on iOS 8?

大憨熊 提交于 2019-12-05 06:55:05
问题 We show interstitial iAds between levels. Since iAds appear to require quite a bit of memory (we used to receive many memory warnings when they are shown and experienced some crashes), we do not load the new view before the interstitial has been closed (so, we first unload the game view, then we show the interstitial, then we load the game view). For this, we used the old/deprecated way of showing interstitials: allocate ADInterstitialAd and set delegate _interstitial = [[ADInterstitialAd

How to add iAd in Cocos-SpriteBuilder

為{幸葍}努か 提交于 2019-12-05 06:37:26
问题 I am using SpriteBuilder (which integrates with Cocos2d v3.0). I built an app and now I want to put in an iAd at the very top that pops up when I call it, and hides when I tell it to. What's the simplest way to do this? Keep in mind I am using SpriteBuilder with Cocos2d. And just because I am using SpriteBuilder does not mean I am not using Xcode 5 as well. I am fully involved in Xcode as well. SpriteBuilder does not write the code for me, I do that. 回答1: Add iAd framework to your

Implementing iAd using Singleton Class

妖精的绣舞 提交于 2019-12-05 06:30:45
问题 I am new to iPhone development. My objective is to implement a singleton class for iAd, so that I share the single instance of iAd over multiple view controllers? Any help on the implementation side will be much appreciated? 回答1: In your AppDelegate.h @property (assign) YouiAdClass*iADObject + (AppDelegate*) sharedApplication; + (YouriAdClass*)sharedAd In your AppDelegate.m @synthesize iADObject + (AppDelegate*) sharedApplication { return [[UIApplication sharedApplication] delegate]; } +

Adding iAd Framework and AdSupport Framework to Build Phases - Xcode 6

耗尽温柔 提交于 2019-12-05 02:15:26
问题 How, in Xcode 6, can I add the iAd Framework and AdSupport Framework to Build Phases? I went to the Build Phases page, but my only options are to add: "New Copy Files Phase", "New Run Script Phase", and "New Headers Phase". Which of those do the frameworks I want to input fall under, and how do I input those frameworks? 回答1: You should click on the Project Icon on the left. Make sure your target is selected. On the screen you should now have 6 titles in the menu (General, Capabilities, Info,

How do I remove ads with In-App Purchase?

筅森魡賤 提交于 2019-12-04 22:43:26
I am having trouble finding out why my iAd is not being removed after a purchase. Here is what I am trying in the file that has the iAd: #define kInAppPurchaseUpgradeProductId @"kInAppPurchaseUpgradeProductId" NSUserDefaults * defaults = [NSUserDefaults standardUserDefaults]; BOOL adsAreOff = [defaults boolForKey:kInAppPurchaseUpgradeProductId]; if (!adsAreOff) { adView = [[ADBannerView alloc] initWithFrame:CGRectZero]; adView.frame = CGRectOffset(adView.frame, 0, -50); adView.requiredContentSizeIdentifiers = [NSSet setWithObject:ADBannerContentSizeIdentifierPortrait]; adView

iAd is not displaying ads in my approved game

萝らか妹 提交于 2019-12-04 20:16:37
I just finished an update to an iPhone app which included ads. I have signed the contract on iTunes Connect and have integrated the iAd framework with my app. When running the simulator I got test ads running in my app. However, now that the app is on the app store (it has been about a week since I put ads into it). Whenever I go to the app on my phone there are no ads. Additionally I have around 300 downloads so far. When I got iAd Workbench and try to view the information on my apps I get something like this: iAd Network is temporarily unavailable Sorry: We were unable to locate information

Is it possible to play 2 video file simultaneously in the same view?

爷,独闯天下 提交于 2019-12-04 13:12:10
Is it possible to play 2 video files simultaneously in the same view? I want to do have them both playing over half the screen, a little like this: _ _ _ _ _ _ _ _ _ _ | | | | | VIDEO | | | |_ _ _ _ _ _ _ _ _ _| | | | | | VIDEO | | | |_ _ _ _ _ _ _ _ _ _| How would I go about accomplishing this? Thanks :) apple's document said: Although you may create multiple MPMoviePlayerController objects and present their views in your interface, only one movie player at a time may play its movie. so,you know... Play 2 video's at a time is possible.. STEPS: 1.create 2 instance of MPMoviePlayer 2.set frame

App rejected due to Advertising Identifier (IDFA)

人盡茶涼 提交于 2019-12-04 11:05:14
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 any derived information with the reset Advertising Identifier." Note: iAd does not use the AdSupport