iad

Interstitial iAds in SpriteKit?

☆樱花仙子☆ 提交于 2020-01-06 19:28:54
问题 I'm using SpriteKit for my iOS app, and need some full-screen (or sometimes called "interstitial" iAds to pop up every so often. I can figure out the code for when it happens, but I need to know how to add iAds without necessarily changing the View Controller. I tried a [tutorial][1] by Techotopia on Interstitial iAds, but to do it I need to transition between actual View Controllers. Well, I tried this, but whenever transitioning back from the iAd view controller to the GameViewController,

Mo pub + iAds in iPhone landscape game

泄露秘密 提交于 2020-01-06 15:40:34
问题 Now I got one requirement to use MoPub+iAds in iPhone game. I used mo pub sdk and initialized view like this MPAdView *moPubAdView = [[MPAdView alloc] initWithAdUnitId:MOPUB_ADS_ACCOUNT_ID size:MOPUB_BANNER_SIZE]; But this displays 320x50 in size. How to enable iAd for this view? Now it is displaying only mo pub ads. 回答1: If you want the slim iAd banner you have to pass the correct CGSize in the size parameter. In this case CGSizeMake(480, 32). To enable iAds for your App go to itunesconnect

Crash with iAd only on iOS 7 - weak delegate is bad pointer

一世执手 提交于 2020-01-06 14:54:45
问题 I'm getting a strange crash with the iAd error callback. Here is my crash log: Exception Type: EXC_BAD_ACCESS Code: KERN_INVALID_ADDRESS at 0x2281 0com.apple.main-thread Crashed 0 libobjc.A.dylib objc_retain + 17 1 YouDoodle AdView.m line 265 -[AdContainerView requestGAD] 2 iAd -[ADBannerView _forwardErrorToDelegate:] + 254 3 iAd -[ADBannerView serverBannerViewDidFailToReceiveAdWithError:] + 178 4 iAd -[ADAdSpace setServiceAdSpace:] + 472 5 CoreFoundation __CFNOTIFICATIONCENTER_IS_CALLING_OUT

Crash with iAd only on iOS 7 - weak delegate is bad pointer

孤街醉人 提交于 2020-01-06 14:54:18
问题 I'm getting a strange crash with the iAd error callback. Here is my crash log: Exception Type: EXC_BAD_ACCESS Code: KERN_INVALID_ADDRESS at 0x2281 0com.apple.main-thread Crashed 0 libobjc.A.dylib objc_retain + 17 1 YouDoodle AdView.m line 265 -[AdContainerView requestGAD] 2 iAd -[ADBannerView _forwardErrorToDelegate:] + 254 3 iAd -[ADBannerView serverBannerViewDidFailToReceiveAdWithError:] + 178 4 iAd -[ADAdSpace setServiceAdSpace:] + 472 5 CoreFoundation __CFNOTIFICATIONCENTER_IS_CALLING_OUT

Displaying iOS iAds only to supported countries

假如想象 提交于 2020-01-04 09:30:16
问题 It seems apple serves iAds only to very few number of countries. So I would like to stop sending iAd requests when app is being used in a non-iAd-supported country. So what is the best way to do this? I'm asking this question because I recently received following message from Apple via iAd network's messages section. The iAd Network has recently launched in Canada. Ads are now being served to apps on the U.S., Canada, U.K., Germany, Italy, Spain, France, and Japan App Stores. Please configure

iOS: full page interstitial ad shows black screen after close

隐身守侯 提交于 2020-01-04 04:38:27
问题 I show a full screen advertisement with this code, which works showing a full page advertisement. The problem is that when I close the advertisement I just have a blank screen. It does not show my app anymore. My code: -(void)showFullScreenAd { if (requestingAd == NO) { interstitial = [[ADInterstitialAd alloc] init]; interstitial.delegate = self; self.interstitialPresentationPolicy = ADInterstitialPresentationPolicyManual; [self requestInterstitialAdPresentation]; NSLog(@

How to display full screen iAd on iPhone? [closed]

♀尐吖头ヾ 提交于 2020-01-03 18:36:08
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago . I just recently read that full screen iAd only works on iPad. Do you think it is possbile to show a full screen iad banner before user to click it on iphone? 回答1: Full screen iAd are ADInterstitialAd available only since iOS 4.3 and for iPad ONLY . Hope this helps 回答2: I just

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

爷,独闯天下 提交于 2020-01-02 18:37:11
问题 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! 回答1: 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

Pause SpriteKit Scene When Clicking on iAds

夙愿已清 提交于 2020-01-02 04:42:08
问题 I am working on a SpriteKit project and I'm struggling to pause the game when the iAd is clicked, and unpause when the iAd is dismissed. The main problem is pausing the Scene from the ViewController, I know that if I want to pause the Scene from the Scene.m I should use the code self.scene.view.paused = YES; however this code doesn't work in the ViewController. - (BOOL)bannerViewActionShouldBegin:(ADBannerView *)banner willLeaveApplication:(BOOL)willLeave { //pause game } - (void

How to implement Interstitial iAds in Swift(Xcode 6.1)

血红的双手。 提交于 2019-12-31 09:06:13
问题 I am trying to figure out how to switch over from my banner view iAds to interstitial iAds in order to free up space for a tabbed controller. For some reason I am completely unable to find any resource for even getting started on these ads with swift. Could anyone please give me some information on interstitial iAds with Swift and how I can implement them in a project. 回答1: Here is a relatively cleaner and easier to follow way to implement Interstitial Ads since this way doesn't require the