iad

iAd works on simulator but not on device

自作多情 提交于 2019-12-31 01:56:11
问题 I am updating an app with iAd. The current version has iAd, and everything works great. But the changes have been substantial enough that I want to test the ads again before I submit the update. When I test iAd on the simulator, I get the test advertisement with no problem. When I try to test it on the device, all I get are calls to didFailToReceiveAdWithError. The descriptions of the error are either: "The operation couldn't be completed. Ad inventory unavailable." or: "The operation couldn

Rotate iPad and AdMob to not load again, like iAds

主宰稳场 提交于 2019-12-30 12:15:08
问题 I am implementing iAd and AdMob banners into my app. On the iPad I'm getting some weird issues when the device rotates, specifically with AdMob. With iAds, the banner remains on the bottom of the screen when the device rotates and doesn't reload the ad. With AdMob however, it reloads the banner when the device rotates, even though I'm using the same code. I am creating the ADBannerView and GADBannerView programmatically. iAd code: self.adBanner.hidden = NO; self.adBanner = [[self appdelegate]

Swift - ADBannerView

陌路散爱 提交于 2019-12-30 09:45:39
问题 Hi guys I tryed to implement ADBannerView with the old way like Objective C but unsuccessfull. Everythings work but the advertisments didn't show up, it stays a blank field. func bannerViewDidLoadAd(banner: ADBannerView!) { UIView.beginAnimations(nil, context: nil) UIView.setAnimationDuration(1) banner.alpha = 1 UIView.commitAnimations() } func bannerView(banner: ADBannerView!, didFailToReceiveAdWithError error: NSError!) { UIView.beginAnimations(nil, context: nil) UIView.setAnimationDuration

Swift - ADBannerView

爷,独闯天下 提交于 2019-12-30 09:45:10
问题 Hi guys I tryed to implement ADBannerView with the old way like Objective C but unsuccessfull. Everythings work but the advertisments didn't show up, it stays a blank field. func bannerViewDidLoadAd(banner: ADBannerView!) { UIView.beginAnimations(nil, context: nil) UIView.setAnimationDuration(1) banner.alpha = 1 UIView.commitAnimations() } func bannerView(banner: ADBannerView!, didFailToReceiveAdWithError error: NSError!) { UIView.beginAnimations(nil, context: nil) UIView.setAnimationDuration

Will my app get rejected if I place an iAd in a UITableView headerView?

非 Y 不嫁゛ 提交于 2019-12-30 07:06:29
问题 I am displaying iAd's in the headerView of a UITableView. When the user scrolls the iAd disappears because the headerView is no longer visible. I am not sure if this will prevent my app from being accepted. 回答1: As I explained in an answer to your previous question (and another question that was closed as a duplicate): iAd appears in simulator but not on device Apple will reject your application if an iAd is within a table cell. iAds are required to be in a static position on the page, and

Taking an iAd across multiple screens

可紊 提交于 2019-12-30 05:26:13
问题 I'm sure there's a simple answer to this but it's beginning to annoy me now! I have an iAd integrated into my app which appears and works on the screen I've implemented it in. The app uses a NavigationController to move between multiple screens, but the iAd is only on one of them. After moving from start to finish through my app several times I get a message appear in GDB saying: Too many active banners (11). Creation of new banners will be throttled. The app then crashes. I have tried

iAd below UITableViewController inside UINavigationController

天大地大妈咪最大 提交于 2019-12-30 00:41:06
问题 I'm building an app for a blog site. I have a UINavigationController with a UITableViewController as it's root view. I laid this out in a storyboard no problem, but I'm trying to drag an iAd view to the bottom of the screen and xcode will not let me add it. It looks like I have to switch from a subclass of UITableViewController to a subclass of UIViewController, and just put my delegate and datasource methods in my subclassed UIViewController. This seems wrong to me. I'm just trying to end up

global ADBannerView in iPhone app

只愿长相守 提交于 2019-12-30 00:37:13
问题 Is it possible with a standard UINavigationController-rooted app, to have a single ADBannerView visible at the bottom of the screen, below the view hierarchy? That is, without modifying each view-controller/view that can be pushed to the root UINavigationController, can I have a global ADBannerView be visible? I'm not sure how to set this up, either in IB or in code. Help? I see similar questions with vague answers. I'm looking for a concrete example. 回答1: EDIT: The better way to do this in

iOS 6 iAd property and methods deprecated

依然范特西╮ 提交于 2019-12-29 07:35:13
问题 Since iOS 6 release, there are some iAd properties and methods that are deprecated like : currentContentSizeIdentifier requiredContentSizeIdentifiers ADBannerContentSizeIdentifierPortrait ADBannerContentSizeIdentifierLandscape So what's the best way to implement iAd now on both orientation ? Should we now resize the banner view frame manually ? 回答1: I have my application only support Landscape mode(should work for Portrait mode also), and have iAd showing up on the top of the application. And

Implementing iAd Banner

主宰稳场 提交于 2019-12-25 16:24:06
问题 I just published an application on the App Store with an iAd banner. When I downloaded it to check for the advertisement, I just saw a plain white horizontal rectangle even though it says "Live: This app is receiving live ads." in development. adView = [[ADBannerView alloc] initWithFrame:CGRectZero]; [adView setCurrentContentSizeIdentifier:ADBannerContentSizeIdentifierLandscape]; [adView setDelegate:self]; [self.view addSubview:adView]; [self.view bringSubviewToFront:adView]; - (BOOL