iad

iAd banner shows test ad on simulator but not on device

穿精又带淫゛_ 提交于 2019-12-02 14:43:09
问题 I am trying to put an iAd banner on my iPhone app. Here is where I declare the banner ad: - (void)bannerViewDidLoadAd:(ADBannerView *)banner { [UIView beginAnimations:nil context:nil]; [UIView setAnimationDuration:1]; [banner setAlpha:1]; [UIView commitAnimations]; } - (void)bannerView:(ADBannerView *)banner didFailToReceiveAdWithError:(NSError *)error { [UIView beginAnimations:nil context:nil]; [UIView setAnimationDuration:1]; [banner setAlpha:0]; [UIView commitAnimations]; } When I test on

Is iAds not available for iPad apps?

别说谁变了你拦得住时间么 提交于 2019-12-02 14:13:49
问题 I have an iPad app, which has a requirement for iAds. But in Library I could not find Ad Banner View. Is iAds not available for iPad? I am using iOS SDK 4.1. What are the other alternatives for implementing in an iPad app? 回答1: You need to be using iOS SDK 4.2, because iPad only supports iAd banners in iOS 4.2 and later. From your comment: no I am on iOS SDK 4.1 Since you are using an older version of iOS SDK, Ad BannerView will not appear in your Interface Builder Library. You'll have to

How to make iAds work on a 3.0 + iPhone-iPad app?

狂风中的少年 提交于 2019-12-02 10:32:57
I created a universal app for the iPhone-iPad. I'm only working on the iPhone part at the moment. In the header file for the view controller for the iPhone one, I import the adbanner header and create an adbannerview variable with a matching property. I don't make it in the nib file but rather check at run time if the class exists, if it does, I create an adbanner programmily and then attach the adbannerview variable to it so I can refer to it inside other functions. Everything works on the 4.0 simulator. I also weak linked the iad class. So if I take the same code to an earlier version of

Is iAds not available for iPad apps?

好久不见. 提交于 2019-12-02 06:08:31
I have an iPad app, which has a requirement for iAds. But in Library I could not find Ad Banner View. Is iAds not available for iPad? I am using iOS SDK 4.1. What are the other alternatives for implementing in an iPad app? You need to be using iOS SDK 4.2, because iPad only supports iAd banners in iOS 4.2 and later. From your comment: no I am on iOS SDK 4.1 Since you are using an older version of iOS SDK, Ad BannerView will not appear in your Interface Builder Library. You'll have to upgrade by downloading the new SDK from developer.apple.com. Remember to upgrade your Xcode project to build

iAd's with Swift in SpriteKit

帅比萌擦擦* 提交于 2019-12-02 03:45:32
I am working on an app and would like to include iAd's. I have managed to add banner ad's and they work well. However i want to a larger add that fills most of the screen but not full screen. I added the adBanner using code from Benzene's Question and given solution from erdekhayser. Apple iAd Documentation (Page 3) The link i have referenced above is from the apple documentation and apple refer to the iAd as an MREC ad. This is what i would like to have. I cannot work out how to create and add one though. I have tried resizing the adBanner but still cannot figure it out. Any help would be

iAd on iPad: Landscape iAd not Oriented Correctly

余生颓废 提交于 2019-12-01 19:40:01
问题 This is still a relatively new topic so not sure how many people have got to implement iAd on iPad (iOS4.2.1). But basically, I get the iAd banner to appear in landscape mode (and it appears correctly). The only problem is when I click the "Test Advertisement" it shows the test advertisement in portrait mode. I.e., the device is still in landscape but the text and iad box itself that says "this confirms that test ads are running correctly" is sideways. Is this normal? has anyone else

iOS 9 - Ad inventory unavailable

我们两清 提交于 2019-12-01 18:20:12
After updating to Xcode 7 and building my app in iOS9, iAds stopped working and I get this error in bannerView didFailToReceiveAdWithError: Ad inventory unavailable. Any ideas? EDIT: iAds are now working. Apple must have fixed it after we filed bug reports on the issue. I am using Xcode 7.3.1 and I received the same error. After I renewed my membership I was able to click at the contracts,tax and banking information section. I saw that there wasn't a contract type for the iAd App Network anymore..only a contract type for paid applications. So my suggestion is that Apple does not support iAd

iOS 9 - Ad inventory unavailable

爷,独闯天下 提交于 2019-12-01 17:43:36
问题 After updating to Xcode 7 and building my app in iOS9, iAds stopped working and I get this error in bannerView didFailToReceiveAdWithError: Ad inventory unavailable. Any ideas? EDIT: iAds are now working. Apple must have fixed it after we filed bug reports on the issue. 回答1: I am using Xcode 7.3.1 and I received the same error. After I renewed my membership I was able to click at the contracts,tax and banking information section. I saw that there wasn't a contract type for the iAd App Network

My iPhone app is still in “test ads” status even after ready for sale

泪湿孤枕 提交于 2019-12-01 17:27:49
问题 I recently publish my iPhone app. I enabled iAds for my app in iTunes Connect in Manage applications. The appl is released and is " Ready for sale " but when I click "iAd network" and click View, I get this message Testing: This app is receiving test ads. This app's status is not yet Ready For Sale. You have configured ad preferences for this app. Test ads show in simulator and I am not in the US (but I imaging I should be getting requests at least) Help 回答1: Usually these things take time to

iAd banner not clickable if banner moves

自闭症网瘾萝莉.ら 提交于 2019-12-01 13:12:12
I have an iAd banner working in a Cocos2d app. Here's the code for a CCLayer subclass I made to show ads. On DidLoad, the add becomes visible and the bottom menu slides up to compensate. -(id) init { if( (self=[super init]) ) { CGSize size = [[CCDirector sharedDirector] winSize]; UIViewController *controller = [[UIViewController alloc] init]; controller.view.frame = CGRectMake(0, size.height -32, 320, 32); ADBannerView *adView = [[ADBannerView alloc] initWithFrame:CGRectZero]; adView.requiredContentSizeIdentifiers = [NSSet setWithObject:ADBannerContentSizeIdentifierLandscape]; adView