iad

Rotate iPad and AdMob to not load again, like iAds

☆樱花仙子☆ 提交于 2019-12-01 12:15:55
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] adBanners]; self.adBanner.delegate = self; if (IDIOM == IPAD) { NSLog(@"***This is the iPad****");

iAd banner not clickable if banner moves

淺唱寂寞╮ 提交于 2019-12-01 11:54:13
问题 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

How do I throttle my iAd loading?

假装没事ソ 提交于 2019-12-01 08:24:03
问题 I keep getting this error: Error Domain=ADErrorDomain Code=2 "The operation couldn’t be completed. Loading throttled" UserInfo=0x6a6bf50 {ADInternalErrorCode=2, NSLocalizedFailureReason=Loading throttled} How do I throttle my loading? The application I am making is relatively small. 回答1: Is this for an App still in development? Apple purposely sends you errors to make sure you handle them properly - throttled loading is one of those errors. If you sometimes get content and sometimes don't

MonoTouch app with iAds runs on simulator, crashes on device

爱⌒轻易说出口 提交于 2019-12-01 08:24:01
A very simple one-page app that includes an ADBannerView crashes on the device whilst running fine in the simulator. The crash is at the point of constructing the main view controller from the XIB. The error is as follows: "cannot decode object of class (ADBannerView)" I'm wondering if there is an additional MonoTouch assembly I need to include? The device is running 4.3.2 and the 4.3 SDK. EDIT: ah, got it - I have to add the following flags (regardless of targeted OS version) -gcc_flags "-weak_framework iAd" Ah, got it - I have to add the following flags (regardless of targeted OS version)

requestInterstitialAdPresentation Works only one Time

和自甴很熟 提交于 2019-12-01 06:55:12
I am wondering why [self requestInterstitialAdPresentation]; works only one time. I mean that I binded this call into UIButton, First time I run my app, and click this button the ad appear correctly but, when I close ad and trying to call again for another ad, simply ad do not appear though nslog said that function was called. On start app I preload ad with [UIViewController prepareInterstitialAds]; I've just come across this and it seems there's a time out to stop people spamming users with adverts after every other segue. I don't know if it can vary, but I've just tried it myself and the

MonoTouch app with iAds runs on simulator, crashes on device

馋奶兔 提交于 2019-12-01 06:46:06
问题 A very simple one-page app that includes an ADBannerView crashes on the device whilst running fine in the simulator. The crash is at the point of constructing the main view controller from the XIB. The error is as follows: "cannot decode object of class (ADBannerView)" I'm wondering if there is an additional MonoTouch assembly I need to include? The device is running 4.3.2 and the 4.3 SDK. EDIT: ah, got it - I have to add the following flags (regardless of targeted OS version) -gcc_flags "

iAd integration in IPhone

佐手、 提交于 2019-12-01 05:40:32
问题 I want to integrate iAd and adMob in My application. I have also integrate it successfully. when iAd in not able to load at that time adMob is come. adMob is working fine when I have test is using test Mode . But when I have upload to appstore and download in my device It show me the iAd with "Test Advertisement" and not able to load adMob in device when test mode is off. Can any one help me to find out solution of this problem. 回答1: If you aren't using it already you should integrate adwhirl

How to create a global reference for iAd and implement in multiple Viewcontrollers

筅森魡賤 提交于 2019-12-01 04:40:13
I'm having 5 ViewControllers in each of that i have to display iAd,so that i have to implement iAd code in each ViewControllers. Instead of that if i create set of common code in AppDelegate means i can just call that code wherever i need iAd to be displayed. If anyone has implemented this iAd concept means help me to get out of this issue. Thanks in Advance. Just create a Pointer to iAD in APP delegate. .h: @property (strong, nonatomic) ADBannerView *UIiAD; .m: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Override point for

How to create a global reference for iAd and implement in multiple Viewcontrollers

痴心易碎 提交于 2019-12-01 02:42:31
问题 I'm having 5 ViewControllers in each of that i have to display iAd,so that i have to implement iAd code in each ViewControllers. Instead of that if i create set of common code in AppDelegate means i can just call that code wherever i need iAd to be displayed. If anyone has implemented this iAd concept means help me to get out of this issue. Thanks in Advance. 回答1: Just create a Pointer to iAD in APP delegate. .h: @property (strong, nonatomic) ADBannerView *UIiAD; .m: - (BOOL)application:

How to Hide iAD

亡梦爱人 提交于 2019-12-01 01:08:57
I would like to ask the following questions: 1) How to hide iAD when the user clicks on the empty screen? 2) How to identify inactivity i.e. If user has an opened some application and leave the iphone and went away and application remained open? Update: According the apple documentation, this method is responsible for dismissing the iAD. but this method is still not working in my code. Any sample or how this method works? - (void)cancelBannerViewAction Explanation: A banner view action can cover your application’s user interface. However, your application continues to run, and receives events