Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

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?

— asked June 23rd 2010 by Johnny Basu
  • iad
  • iphone
0 Comments

5 Answers

  • Ti.UI.iOS.createAdView({
     width: 'auto',
     height: 'auto'
    })
    

    boom.

    — answered June 23rd 2010 by Alexander Stone
    permalink
    0 Comments
  • This is currently undocumented right? part of the 1.4 release then?

    thanks a ton!!

    — answered June 23rd 2010 by Johnny Basu
    permalink
    2 Comments
    • oh snap! actually, it's part of the 1.3.2 beta thingie they just put out.

      read this

      — commented June 23rd 2010 by Alexander Stone
    • brilliant, i downloaded 1.3.2 yesterday, having skipped 1.3.0.

      — commented June 23rd 2010 by Johnny Basu
  • 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.

    — answered June 29th 2010 by Pedro B.
    permalink
    0 Comments
  • How do you position it? Any top, left, right, bottom parameters?

    — answered June 29th 2010 by Peter Lum
    permalink
    0 Comments
  • 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;
      }
    }
    
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.