iad

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

人盡茶涼 提交于 2019-12-01 00:43:54
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. Jasarien 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 not in any kind of scroll view (this includes table views). This is because iAds pay by impression as

iAd left white blank screen after closed

非 Y 不嫁゛ 提交于 2019-11-30 23:51:25
I got a problem to integrate iAd in my iPhone apps -- the banner ad is fine when it expends (see http://www.clingmarks.com/iAd1.png and http://www.clingmarks.com/iAd2.png ), however, when I close it, it left a white blank screen (see http://www.clingmarks.com/iAd3.png ). I couldn't figure out why. Here is how I integrate the ad: Because I need to support other ads for lower version of iPhone OSes, I add a container view at the top of the apps, whose view controller is AdViewController. When the view is loaded, I create a AdBannerView programmatically and add it as a subview to the

How to properly hide these ad banners?

纵饮孤独 提交于 2019-11-30 16:20:40
(Sprite Kit Game) I want my ad banners to be hidden during gameplay. I've set up my project to contain both iAd and AdMob advertisement banners. Prior to adding in the AdMob SDK and the code for the AdMob advertisements, I had no problem with hiding the iAd banner when I wanted it hidden. Now there is a problem because of how my code is set up and I can't seem to fix it: This is the code: - (void)viewDidLoad { [super viewDidLoad]; //Add view controller as observer [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(handleNotification:) name:@"hideAd" object:nil]; [

Implementing pre-roll video iAds

六月ゝ 毕业季﹏ 提交于 2019-11-30 16:05:15
In October 2014 Apple announced pre-roll video as a new ad format for iAd https://developer.apple.com/iad/resources/Implementing-iAd-in-Your-iOS-Apps.PDF However, there is no official documentation on implementing them. Is this format available yet and if so how can they be implemented? Check my example for a working implementation of iAd's prerolled video ads: #import "ViewController.h" @import iAd; @import MediaPlayer; @interface ViewController () { MPMoviePlayerController *moviePlayer; } @end @implementation ViewController -(void)viewDidLoad { [super viewDidLoad]; // Preload ad

xcode 4.3 - storyboard - iAd keeps moving

試著忘記壹切 提交于 2019-11-30 07:45:39
I have added iAd to my iphone app to be at the top of my app. originally I place it at x=0 and y=-50 so that it comes from off the screen. I use the following code for it in my .m : - (void)bannerView:(ADBannerView *)abanner didFailToReceiveAdWithError:(NSError *)error { if (self.bannerIsVisible) { [UIView beginAnimations:@"animateAdBannerOff" context:NULL]; // Assumes the banner view is placed at the bottom of the screen. banner.frame = CGRectOffset(banner.frame, 0, banner.frame.size.height); [UIView commitAnimations]; self.bannerIsVisible = NO; } } - (void)bannerViewDidLoadAd:(ADBannerView *

Implementing pre-roll video iAds

允我心安 提交于 2019-11-29 23:46:08
问题 In October 2014 Apple announced pre-roll video as a new ad format for iAd https://developer.apple.com/iad/resources/Implementing-iAd-in-Your-iOS-Apps.PDF However, there is no official documentation on implementing them. Is this format available yet and if so how can they be implemented? 回答1: Check my example for a working implementation of iAd's prerolled video ads: #import "ViewController.h" @import iAd; @import MediaPlayer; @interface ViewController () { MPMoviePlayerController *moviePlayer

How to properly hide these ad banners?

不想你离开。 提交于 2019-11-29 23:41:36
问题 (Sprite Kit Game) I want my ad banners to be hidden during gameplay. I've set up my project to contain both iAd and AdMob advertisement banners. Prior to adding in the AdMob SDK and the code for the AdMob advertisements, I had no problem with hiding the iAd banner when I wanted it hidden. Now there is a problem because of how my code is set up and I can't seem to fix it: This is the code: - (void)viewDidLoad { [super viewDidLoad]; //Add view controller as observer [[NSNotificationCenter

Autolayout and subviews

混江龙づ霸主 提交于 2019-11-29 22:58:51
I am using the iAd suite with storyboards from Apple, as per this link... Apple iAd Storyboard documentation It all works fine until I turn autolayout on. It builds fine but crashes on running. The output I get is: 2013-08-24 12:06:36.138 TabbedBanner[7272:c07] * Assertion failure in -[UIView layoutSublayersOfLayer:], /SourceCache/UIKit_Sim/UIKit-2380.17/UIView.m:5781 2013-08-24 12:06:36.139 TabbedBanner[7272:c07] * Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Auto Layout still required after sending -viewDidLayoutSubviews to the view controller.

iAd — cannot click banner

浪尽此生 提交于 2019-11-29 20:50:55
问题 I am creating a universal-app template. This template will need to support optional iAds, and optionally all orientations. I coded up a solution only to find a bizarre bug. in certain situations I was unable to click on the banner I then recoded another revision, tidied everything, and gutted out most of the code to reveal a minimal test case failure. https://github.com/p-i-/iAdUniversalTemplate/commit/2c829d268a9452e1a054802e7ccb9cde5de17853 In this new code, only 3 views: window, uberview

iAds causes problems with auto layout?

谁说胖子不能爱 提交于 2019-11-29 15:37:37
Whenever I set self.canDisplayBannerAds = true in my viewDidLoad method, my layouts all get shifted over and messed up for some reason. The webview has been zoomed in by a few pixels and the status bar is shifted down. but when I remove that line of code, my ad displays just fine and everything is perfect. If you're implementing your own ADBannerView then you need to remove self.canDisplayBannerAds = true from your viewDidLoad . self.canDisplayBannerAds = true can be used for a no hassle way of implementing iAd banners in your application. This will create an ADBannerView for you and show or