iAd integration
I haven't seen any questions on integration of iAd within the Ti SDK for 1.4 or later?
Does anyone(devs/grp members) have any knowledge about this.
Or are there any other ad networks which we may integrate with our iPhone apps currently?
5 Answers
-
Ti.UI.iOS.createAdView({ width: 'auto', height: 'auto' })
boom.
-
This is currently undocumented right? part of the 1.4 release then?
thanks a ton!!
-
The test iAD no longer works in the device after my iOS4 upgrade.
Just a blank white banner.
Still works fine in the Simulator, though. Weird. -
How do you position it? Any top, left, right, bottom parameters?
-
I've just gotten my first app with iAds rejected from Apple because the iAd block needs to be disabled when no ads are being displayed. Anyone have some advise? This is the code that they said, should be included.
- (void)bannerView:(ADBannerView *)banner didFailToReceiveAdWithError:(NSError *)error { if (self.bannerIsVisible) { [UIView beginAnimations:@"animateAdBannerOff" context:NULL]; // assumes the banner view is at the top of the screen. banner.frame = CGRectOffset(banner.frame, 0, -50); [UIView commitAnimations]; self.bannerIsVisible = NO; } }