User Tag List

Results 1 to 3 of 3

Thread: How to hide blank or empty banners using iAd

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module

    Join Date
    Jan 2010
    Posts
    545
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    How to hide blank or empty banners using iAd

    Hi,
    Apple says to hide blank or empty banners, but it is not clear how to do this in MMF2. Does anyone know how to do the following (taken from the Apple Developer iAd implementation best practices):

    "You should hide your banner view whenever ad content is not available; this includes:

    1) When the banner view is initially loaded from a .xib or Storyboard
    At launch, ad content may not yet be available to your app. You should hide the banner in your view controller's -viewDidLoad method.
    2) When an error occurs
    A banner view may fail to load an ad due to the lack of a network connection, inventory availability, improper banner usage, etc. You must hide the banner in the ADBannerView's bannerView:didFailToReceiveAdWithError: delegate method.
    3) When ADBannerView's bannerLoaded is false

    In other places in your code where you do layout, check the ADBannerView's bannerLoaded property to determine if the banner should be hidden."

    The only condition I see in MMF2 is "when an error occurs."
    Any insight is appreciated. Thanks,
    Brett

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleInstall Creator Pro

    Join Date
    Jul 2006
    Location
    Germany
    Posts
    1,090
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The iOS Object has a condition: No error in iAD advertisement
    I use it this way, by setting a value as a marker:

    Always -> set value=0 (which indicates that an iAD is NOT available)

    No error in iAD advertisement -> set value=1 (which indicates there is an iAD showing)

    Value=1 -> Enable iAD

    Value=0 -> Disable iAD, show alternative AD

  3. #3
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleXNA Export Module
    DistantJ's Avatar
    Join Date
    Jan 2008
    Location
    Gloucester, UK
    Posts
    2,144
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    iAd has been updated since XCode 4 (or somewhere around here) so that you don't need to do this. It will only show an Ad if one is available. If there are no ads available, the banner will not show.

Similar Threads

  1. Game is blank?
    By cmzerres in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 27th December 2012, 11:56 PM
  2. Why are example mfa:s empty?
    By Outcast in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 2nd June 2012, 03:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •