iad

iOS 6 iAd property and methods deprecated

*爱你&永不变心* 提交于 2019-11-29 10:03:52
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 ? 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 to make this work with ios6 I had to do this: In Monotouch storesAdBannerView = new ADBannerView();

is it a good practice to delete the AdBannerView on viewWillDisappear and add it back on viewWillAppear?

自闭症网瘾萝莉.ら 提交于 2019-11-29 08:33:44
I am currently doing the following in my code avoid the issue of "obscured" ad. But is it a good practice? One potential problem is that - assume before the viewWillDisappear, there was an ad request send out, and then when the ad come back the adBannerView instance has gone. Would that be a big problem? Should I only do hideAdBanner instead? - (void)viewWillAppear:(BOOL)animated { [super viewWillAppear: animated]; // create the ad banner view [self createAdBannerView]; if (adBannerView != nil) { UIInterfaceOrientation orientation = self.interfaceOrientation; [self changeBannerOrientation

App approved but no AdMob ads appearing

浪子不回头ぞ 提交于 2019-11-29 07:53:08
My iOS application was denied due to Apple not finding my ads during the review process. I uploaded my application again, included directions on how to see the ads, and it was approved today. Now, once my friends and family downloaded the application no ads are showing up. I checked my AdMob account and no impressions showed up so I don't know what's wrong. Has anyone had this happened to them? Also, it hasn't been 24hrs yet since the app was approved. Since Apple approved it I assume that they have seen the ads. My application shows ads when you start using the filters after you pick a photo.

iAd error “Ad inventory unavailable”

徘徊边缘 提交于 2019-11-29 06:36:12
I'm adding iAd to my app. Now, in simulator, it works well but when I load it on a device (v4.1) the ADBannerViewDelegate calls bannerView:didFailToReceiveAdWithError: with this description on the error.userInfo { ADInternalErrorCode = 3; NSLocalizedFailureReason = "Ad inventory unavailable"; } I think my iAd Network setup is correct. Have I to add an ad by myself or iAd Network automatically sends test ads as in simulator? EDIT: I think it was a latency problem of the iAd Network server that dispatches the ads. I suppose that when the network had ads for my app it began to work fine.

Hide/Show iAds in Spritekit

丶灬走出姿态 提交于 2019-11-29 04:25:12
I've been trying to figure out how to hide and show iAds in my Spritekit Scenes. Currently I have it setup like this: ViewController.h #import <UIKit/UIKit.h> #import <SpriteKit/SpriteKit.h> #import <iAd/iAD.h> @interface ViewController : UIViewController <ADBannerViewDelegate> { ADBannerView *adView; } -(void)showsBanner; -(void)hidesBanner; @end ViewController.m #import "ViewController.h" #import <UIKit/UIKit.h> #import <iAd/iAD.h> #import "MyScene.h" #import <SpriteKit/SpriteKit.h> @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; // Configure the view. SKView *

ADBannerView fails to receive ad with error 'The operation couldn’t be completed. Ad inventory unavailable'

非 Y 不嫁゛ 提交于 2019-11-29 04:22:11
I started to implement iAd into a new App yesterday. But getting the error from the question title since then. Anyone know how I can fix it? I've read here that it might be Apples fault. But since that thread is pretty old and I couldn't find any discussion on the Apple Dev forums about it for the current time, I don't believe this is a general issue on Apples side in this case. Also the problem can't be that they don't currently have enough ads to show because that only matters in live ads. Some further information: I did enable iAd Networking in iTunes Connect for the app. The app even

How long do iAd apps take to start generating impressions?

时间秒杀一切 提交于 2019-11-28 23:33:01
I released an app with an iAd in it on Friday. So far it has generated zero impressions with many requests - a fill rate of zero. Most of my requests are in the USA (~90%) so the problem is not that the requests are from countries which iAd does not support). An older app of mine which is less popular is consistently generating a 98% fill rate despite a lower number of requests. I was just wondering if it's normal for iAd apps to not generate impressions right away. Should I expect to eventually get impressions after some time, or is something wrong? Jackson It takes 1-4 days for an app to

Shared iAd banner bannerViewDidLoadAd not being called

空扰寡人 提交于 2019-11-28 13:08:05
I am using the following code to setup a shared iAd banner. AppDelegate.m - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { _adView = [[ADBannerView alloc]init]; } ViewController.m -(void) viewWillAppear:(BOOL)animated { AppDelegate *appdelegate = (AppDelegate *)[[UIApplication sharedApplication ]delegate]; _adView = [appdelegate adView]; _adView.delegate = self; self.canDisplayBannerAds = true; } - (void)bannerViewDidLoadAd:(ADBannerView *)banner { [UIView beginAnimations:nil context:NULL]; [UIView setAnimationDuration:1]; [banner

iOS 7 iAd cocos2d deprecated

拟墨画扇 提交于 2019-11-28 12:59:06
Im trying to get iAd implemented to a iOS 7 game I made with cocos2d, I added iad framework in xcode and have the setup below in @implementation I have set ADBannerView *_bannerView; then -(id)init { if( (self= [super init]) ) { // On iOS 6 ADBannerView introduces a new initializer, use it when available. if ([ADBannerView instancesRespondToSelector:@selector(initWithAdType:)]) { ADBannerView *_adView = [[ADBannerView alloc] initWithAdType:ADAdTypeBanner]; } else { _adView = [[ADBannerView alloc] init]; } _adView.requiredContentSizeIdentifiers = [NSSet setWithObject

Are Apps using iAd compatible with older iOS

北城余情 提交于 2019-11-28 11:48:08
Can I add the UIBannerViewDelegate protocol to my UIViewController subclass while remaining compatible with pre-iOS 4 devices? This is NOT a duplicate, the question is specifically related to the delegate protocol. If you weak-link the iAd framework, you will encounter no issues with a controller class that conforms to the ADBannerViewDelegate protocol. You will, of course, need to add the ADBannerView programmatically (if it exists on the running OS) or otherwise load a different Nib file for 3.x vs. 4.x. Even though there is no ADBannerViewDelegate protocol in iPhone OS 3.x, I just tested