iad

iPhone iAds: Very inconsistent, sometimes bannerViewDidLoadAd does not get called

我的梦境 提交于 2019-12-11 19:46:12
问题 So I show my iAd banners when I get a callback to: 'bannerViewDidLoadAd' But I've noticed that sometimes this doesn't get called. I have a constant high-speed internet connection but if I run my app 10 times. 4 of out 10 times it won't show the iAds (i.e., bannerViewDidLoadAd does not get called). Has anyone else experienced this (and what have you done about this)? 回答1: This is by design (I'm assuming you're still running in a dev environment) so that you can test your application when an

iAd error: Ad Inventory unavailable

霸气de小男生 提交于 2019-12-11 19:15:12
问题 I am in the final stages of an app and I have been testing my ad-enabled app on both my iPhone (4S, iOS 6.0) and iPad (3, iOS 5.1.1). My app is an iPhone app (i.e. it runs on iPad as an iPhone app) and I used the same XCode project to run my app on the two devices. The curious thing, is that on my iPhone I see the iAd test ads, and on the iPad (also connected to my Wifi) I don't. I see the following error in the console: { ADInternalErrorCode = 3; NSLocalizedFailureReason = "Ad inventory

iAds sometime appearing as white boxes in app?

有些话、适合烂在心里 提交于 2019-12-11 18:04:04
问题 So, I have an app that requires internet, and one the beginning, if the user doesn't have internet capabilities, the app shows a blank screen with an error alert. So, iAds should always appear, because the user using the app should alway have internet capabilities, or the view wouldn't load. But sometimes, when I'me testing the app, one out of every 4-5 times the iAd will just come as a white box. Sometimes, in the middle of the app, when I move the iAd to a different position, it also

Changing iAd position and placement

拥有回忆 提交于 2019-12-11 14:48:11
问题 I've been looking at various tutorials and code snippets, try to implement iAd. I've been successful to an extent but I need to customise, I can't seem to work out what I need to do to make my changes, can anyone help? - (void)viewDidLoad { adView = [[ADBannerView alloc] initWithFrame:CGRectZero]; adView.frame = CGRectOffset(adView.frame, 0, -50); adView.requiredContentSizeIdentifiers = [NSSet setWithObjects:ADBannerContentSizeIdentifierPortrait, ADBannerContentSizeIdentifierLandscape, nil];

Sizing iAd Banner Views

淺唱寂寞╮ 提交于 2019-12-11 14:19:44
问题 This seems like it should be simple, but the documentation is very unclear. In the introduction of the ADBannerView class, Apple says this: A banner view must always use one of the standard sizes defined in Content Size Identifiers. This is to ensure that the advertisement is drawn correctly. You configure the banner view’s requiredContentSizeIdentifiers property with the set of possible sizes your view is allowed to use in your application. To change the size of the banner view, do not set

iAds in a Scrolling View

杀马特。学长 韩版系。学妹 提交于 2019-12-11 14:04:19
问题 In my application I want to show iAd in table view controller which have both navigation bar and Tab bar. I am able to show iAd in my application but this iAd is give trouble when I try to scroll, the problem is that iAd is also scrolling with the cells due to which I am not able to view the cell in bottom. I am creating the iAd using below code. can some one help me out in resolving following issue. #pragma mark - #pragma mark === Banner View Methods === #pragma mark - - (void

iAd AdBanner Memory leak issue (App crashes)

丶灬走出姿态 提交于 2019-12-11 13:57:57
问题 I have a simple app with list/detail view. In the detail view, I have 1 webview and also show 1 iAd. As I toggle between list/detail view, my app crashes sometimes. It seems there is something wrong with my iAd code. Please hlp me fix it. I tried using Leaks, but am unable to figure it out completely. Below is the UPDATED code; @interface DetailController : UIViewController <UIWebViewDelegate,ADBannerViewDelegate> { NSString *selectedTxt; IBOutlet UIWebView* webView; ADBannerView *adView_;

Error Could not cast value of type UIView to SKview

☆樱花仙子☆ 提交于 2019-12-11 13:37:14
问题 Ever since i added in iAds i keep getting this error. "could not cast value of type 'UIView' (0x196afa530) to 'SKView' (0x19685f560)." this is the code that fails and the code on the bottom is my inter view controller code.. which is not much. i think at also has something to do with this code for iAds. var interstitialAdView: UIView = UIView() Code: override func viewWillLayoutSubviews() { super.viewWillLayoutSubviews() if let scene = GameScene.unarchiveFromFile("GameScene") as? GameScene {

ADBannerView error (no delegate or delegate does not implement didFailToReceiveAdWithError:)

旧巷老猫 提交于 2019-12-11 11:15:08
问题 My app is on the App Store and it doesn't show any ad. So, after contacting Apple and receiving no solution, I saw this error in the console while running my app on the simulator: [AppDeveloper] ADBannerView: Unhandled error (no delegate or delegate does not implement didFailToReceiveAdWithError:): Error Domain=ADErrorDomain Code=1 "Service session terminated." UserInfo=0x7f18e160 {ADInternalErrorCode=1002, NSLocalizedDescription=Service session terminated.} Is that the reason why my app

How to correctly place an iAd Banner over a Tab Controller?

谁说胖子不能爱 提交于 2019-12-11 11:08:34
问题 I am trying to add an iAd banner on top of a TabBar, which is 50pts above the bottom of the screen, but for some reason, the Banner moves up, 50pts, across the screen, every time, after it refreshes. I'm initializing it in the tabBarViewController this way: - (void)bannerViewDidLoadAd:(ADBannerView *)banner { if (!_bannerIsVisible) { // If banner isn't part of view hierarchy, add it if (_adBanner.superview == nil) { [self.view addSubview:_adBanner]; } [UIView beginAnimations:@