Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 1    Views: 66

J & A
Aspiring developer
Profile
Posts: 6
Reg: Apr 23, 2013
Santa Ana, CA
3,910
12/13/13 10:33 PM (11 years ago)

iAds not working in Menu with Image plugin

Hello, ever since the 3.0 update, the "Advertising Options" drop down in the Menu with image plugin isn't working. This is the main menu I use on my quantity apps. Any ideas on how I can correct this, or do I need to wait for buzztouch to update the specific plugin(s)? Below is the response I received from Apple as to why my app was rejected: 7.2: Apps that contain empty iAd banners will be rejected We found that your app displays an empty iAd banner when ad content is not available, which is not in compliance with the App Store Review Guidelines. Please see the attached screenshot/s for more information. The banner within the app should be hidden whenever ad content is not being served by iAd. To handle the case where ad content is not available, you need to implement a banner view delegate. Please refer to Technical QA1641 Hiding iAd banners for information on how to hide iAd banners when ads are not available. An example code snippet is included here for your convenience. Additionally, you may wish to review the section"Working with Banner Views" of the iAd Programming Guide. Banner View Delegate to Remove a Banner View When Advertisements are Not Available: - (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, -banner.frame.size.height); [UIView commitAnimations]; self.bannerIsVisible = NO; } }
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
12/14/13 04:52 AM (11 years ago)
Is this 'an updated version of an existing app' or is this a 'recreated app in BTv3 code'. I could be wrong, but I don't think it's the menu with image plugin. The code for iAds in the plugins is only a couple of lines long, and is fairly standard. I've never used iAds, so anything I say might not be all correct, lol! But there is an 'iAd' framework that has to be included. Make sure it is. In the plugin, all it really does is mirror the control panel 'iAd on or off'. After that, if it is 'on' it's told to create a banner area from the method 'createAdBannerView' located in the BT_viewController.m file. Make sure there are no warnings going on in that area. Are you certain that you have the Apple side of iAds working? Did you have iAds working before? More than just your app needs configuration; there is also stuff to do in your Apple Developer control panel too. It's probably not the plugin. It's 'possibly' the core. But there are a few places to look first. Let us know how it goes… Cheers! -- Smug
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.