Where are the iAd fill rate settings in xcode? I am running only on the simulator. I read on the apple website states:
"In iOS 6, you can further test iAd banner functionality in your developer-mode app by setting Fill Rate and Ad Refresh Rate in your device’s Developer Settings. Adjusting “Fill Rate” allows you to test cases when a banner is available and when it is not. By setting “Ad Refresh Rate,” you can more efficiently test how your app handles banner loading and errors."
I keep getting: "didFailToRecieveAdWithError" in my app that had previously been receiving iAds just fine.
I just noticed that in the Developer settings in iOS you can change the fill rate. Very good when I'm trying to implement google ads when iAds not showing and need to test.
This settings doesn't actually exist on the simulator. However, you can find it on a real device (that has been enabled for development) under:
Settings->Developer->Fill Rate.
This being said I recommend testing on a real device. If you test on the simulator and something doesn't work, that doesn't really matter so long as it works on real devices.
Related
I have an app with a relatively rich UI hierarchy (a few collection views, some custom menu items). My app has iAd enabled and I took full advantage of the automatic iAd framework, where you just
#import iAd;
and then just self.canDisplayBannerAds = YES; in viewDidLoad
This works great on iPad mini, iPad 2, iPad Air, but for a reason I can't figure out, it doesn't on my iPad Pro.
Before you suggest it, no, it has nothing to do with the Developer settings for iAd's, I have the same settings of "Fill Rate 100%" and "Unlimited Ad Presentation" as in the other iPad's.
Nothing on the internet when I search for iPad Pro but product reviews...
Found it! I created an empty app with iAd and it did work, so it had to be something with my app. Finally realized that the significant difference was that my app was scaled to look the same size as it would on a normal iPad. A quick google search showed me that the way to have iPad Pro display an app in its native resolution is by setting the Launch Screen File in the project general settings to the main Storyboard. Once displayed in its native resolution, the app correctly displays iAd's.
Apple documented it with respect to iPhone apps scaled up to iPads:
iPhone apps running in compatibility mode on iPad will not display a test ad in development or live ads in deployed apps
Guess they need to update the doc to include the difference with the iPad Pro: https://developer.apple.com/library/ios/technotes/tn2264/_index.html#//apple_ref/doc/uid/DTS40011827-CH1-CREATE_UNIVERSAL_APPS
I recently updated my iPhone app with iAds. In the simulator, the iAds showed up and were working perfectly fine. My app was updated on May 15th, and I downloaded the app on my iPad after to see if the iAds were working. I didn't see them show up.
After looking at similar questions, I waiting for a couple of days to see if it would change. As of today, the iAds still haven't shown up on my iPad, but on iTunes Connect, it actually shows that my app has a total of 110 requests from May 19th to May 23rd, which makes no sense to me. How can I be getting requests if the iAds don't even show up?
Thanks in advance.
The banner will be blank if there aren't any ads currently available to show. This can happen for a number of reasons. The simulator simply shows an example ad for development purposes.
Have you followed the best practice of hiding the banner when no ad is available? https://developer.apple.com/library/ios/technotes/tn2264/_index.html#//apple_ref/doc/uid/DTS40011827-CH1-HIDE_BLANK_OR_EMPTY_BANNERS
Let's say I want to create a WatchKit app that shows the seconds for the current time.
What happens if iPhone gets turned off (e.g. battery drained), then user starts the app on the Watch device?
As far as I know, every (!) code runs on the iPhone (extension app), so my method that "fetches" seconds probably won't respond either. It is hard to imagine, but seems that I cannot get / display the current time on the Apple Watch if iPhone is turned off.
Any experiences on this?
Firstly, you can't do watch faces in the current developer kit.
All current WatchKit apps are extensions of iPhone or iPad apps. As you suggest, if the iOS device is not contactable, nothing will happen.
Apple say that native Watch apps will be coming later.
Your app will be killed immediately.
As you mentioned before, WatchKit Extension runs on iPhone, and you're absolutely right. There is only storyboard on Apple Watch.
So, the answer is very simple - "No code - no App"
I'm testing my app in the Sandbox, and I'm using canDisplayBannerAds with iOS7. I had this working acceptably until I did some tests where I started the app in Airplane Mode (important to me because I need to detect if there is a network connection and if the user has paid to remove ads). With the iPad in Airplane Mode, I launch the app. Of course, no ads are displayed. Then, I switch to Settings (I don't explicitly quit the app), turn Airplane Mode off (the network is available again), but ads don't come back. Even if I set canDisplayBannerAds to YES again, it doesn't appear to help. The network is available, canDisplayBannerAds is YES, but no ads appear. Thoughts?
Ads won't appear in a number of circumstances, and I'm guessing this is one of them.
The real question you need to ask is
1.) How many users are going to find this out?
and
2.) Who has the time or effort to do this Airplane-mode-toggle-dance for your app. Apps are ephemeral experiences for the most part.
I have an iPhone app that implements iAd. In debugging mode everything works fine and I'm showing the test advertisement correctly on simulator and on device with no particular logs or errors.
The app was approved and it's in the app store, but is not showing any ad.
I show the iAd in a UIview with lots of textual content, but in Italian (don't know if language matters, btw the app is available in all the app stores).
I wonder how iAd search for content and then displays related banners and how I can somehow "force" content by passing (if possible) tags or predefined content.
Any idea?
I simply forgot to add my app to the iAd service.
I needed to upload a new version in order to fix this.
Let's wait for apple approval.
Thanks!