I'm currently using the AdWhirl SDK for the iPhone so I can switch Ad Networks depending on Ad-Availability.
Now there is no AdWhirl SDK for the iPad, so I just show AdMob ads.
But in iOS 4.2 we can now show iAds on the iPad too, and it would be nice to combine the two.
Is there a tutorial on how to exactly combine them?
I mean I did some manual switching between the too, in the usual delegate methods that get called when one of the two fails to load etc.
But it's really hard to test if this is working properly and stable, since on the actual Devices the fillrates for iAd will be ~10% and AdMob ~60%.
Now testing this the iAd-Test Advertisement shows up all the time, so I can't really test whether AdMob would show up, would iAd refuse to present an Ad.
I know this question is old, but I wrote an iAd/AdMob wrapper that's available on github. As little as one line of code will get both ads running and it's currently what I use with my app that's on the app store. It supports both iPhone and iPad in all orientations if you properly implement the callbacks.
If you don't want to roll your own, Mobclix offers something similar to AdWhirl for iPads
Related
I made an iPhone Application which uses iAd. On the iPhone Simulator and the Device it works fine. It already is on the App Store.
Today, one of my customers told me that iAd is not showing up on the iPad. So I build my app on the iPad Simulator and it is not showing up, while the iPhone Simulator / iPhone Device work like expected.
I never test which device it is before displaying something, so this can not be the error.
This one does not show up any error: - (void)bannerView:(ADBannerView *)banner didFailToReceiveAdWithError:(NSError *)error
Any ideas?
If you want to use iAd, you pretty much need to be a universal app. My iPhone-only iAd app when run on an iPad in compatibility mode (on the simulator or on a real iPad) would call bannerViewDidLoadAd but then displayed a blank space instead of an ad. The Apple "iAd Implementation Best Practices" doc says:
Create Universal Apps
To ensure your app is capable of displaying iAd banners for all your users,
make sure you’ve developed a universal app that supports all possible devices.
**iPhone apps running in compatibility mode on iPad will not display a test ad
in development or live ads in deployed apps.**
https://developer.apple.com/library/ios/technotes/tn2264/_index.html
I had a similar problem. The only solution for me was to make the application universal. Once the application was universal the iAds start working.
You might notice that even some of applications from iAds suite form Apple did not work. And they mention somehting in this regard in their description here:
http://developer.apple.com/library/ios/#samplecode/iAdSuite/Introduction/Intro.html
The BasicBanner and ContainerBanner are configured to support both iPhone and iPad idioms, the TabbedBanner and NavigationBanner to support only the iPhone idiom, and the SplitViewBanner to support only the iPad idiom.
The only difference I have found was the universal vs. iPhone app settings (target->SUmmary->Device combobox).
Hoever, if I remember correctly, my - (void)bannerView:(ADBannerView *)banner didFailToReceiveAdWithError:(NSError *)error was called. The error was saying something about that there is no available iAds.
Also, I tried only on iOS5 (both simulator and device).
Hope this will help you a little ;)
Update: Also check this SO question in case you are using some older SDK:
Is iAds not available for iPad apps?
As an alternative answer, which just worked for me... because I forgot about it. I had set Fill Rate of iAds in the Settings/Developer page to 0% some long time ago... DOOH!
So please triple check there.
I am using iOS SDK 4.2
My application is not universal application(iPhone/iPad) but it can be downloaded in iPad and works fine in both devices.
Now I have integrated iAd in my application.I've followed iAdSuite example. Its working fine in iPhone. But iAds not working when I download in iPad !!!
I found The BasicBanner and ContainerBanner examples in iAdSuite are configured to support both iPhone and iPad as it creates universal build.
I want to know that is it necessary to create universal app for iAd ???
Thanks....
See my post here
iAd development - more errors than successful test ads
Put breakpoints on the ad delegates and see if they are returning failures or success. You should get at least some response.
In debug mode apple will often send failures to simulate the iAd network being down.
In production, there is a very low fill rate for iAds - so there might not be an ad available.!
My app is iPad only, and i got ads. So no, it doesn't have to be universal.
I have a rock solid iPhone app and wanted to know how I could get an iPad app out through iTunes Connect.
What steps are required in Xcode (or AppCode) to compile the app iPad friendly?
What features (like gps) should I pull from the iPhone code base to prevent strange crashing on the iPad?
How do I link and publish the iPad app in iTunes Connect so users who search see my app with a + sign in the App Store (assuming this means it's iPhone and iPad friendly)?
And finally, what else should I look out for doing this from a single obj-c codebase?
There are two types of porting possible one is universal app (in which a plus sign is shown with your app in itunes) and the other is two device-specific application (in which two targets are created one for iphone and one for ipad and both get released as complete independent apps). Now it depends on you which modal you choose. Yet I ported my apps using the second option as I want user to buy each time for each of his device :). Anyways, solely depends on you, here's a good tutorial for this http://www.raywenderlich.com/1111/how-to-port-an-iphone-application-to-the-ipad. I haven't came across any such thing which can crash a similar app on the ipad but might there'd be some. Though there are somethings which I came across that the ipad (ipod too) doesn't have any vibrator available, as my iphone app was using vibration to give some indication, so if you're using it you might need to circumvent it with some alternatives plus your app should support the PortraitUpsideDown orientation. It's weird that APPLE rejected my third ipad app due to this after releasing my first two apps with the similar limitation :).
I have an iPhone app in the app store, but I am having a problem with iAds. iAds are showing up as they should on iPhone 3G and iPhone 3GS phones that have downloaded the app, but the iAds are not showing up on any iPhone 4 phones. They are all running the latest software version (iOS 4.2.1). Also, both iPhone 4 and iPhone 3GS phones were both correctly displaying test iAds during my testing phase. Does anyone know what might be causing this issue? Thanks in advance.
The iAds service currently has a really low fill rate (ie, you won't receive an advert every time you request one and, particularly outside the US, are often quite a bit more likely not to receive one). Quite probably either what you're seeing is a coincidence or the particular ads that Apple happens to be running at the minute in your territory aren't being supplied for the iPhone 4 with your app's combination of other ad-relevant metadata (and exactly what Apple use is undisclosed, just assume all the information you supply about your app may be relevant when picking which adverts to serve).
If your app showed the test iAds correctly then it'll show proper iAds correctly. Since Apple require that you properly implement showing/hiding of the iAd bar based on whether you receive an advert, it's safe to assume that they test this feature of your app.
I am creating an universal app. The app should be able to run properly in iPad, iPhone 4.0 OS and also in iPhone OS with versions more than 3.0. I want to implement a banner in my application.
In my case using iAd or AdMob should I create the banner. Since I am creating universal app I don't know the proper way of approaching this. Is there any alternate to create the banner view?
You can use AdMob as an ad provider in iOS4 without problem.
If you wish to use iAds and AdMob I suggest taking a look at the AdWhirl solution.
If I understand you correctly, you will always need to create some kind of view where your ad will be shown. Check in the AdWhirl FAQ and full instructions and some demo code are included there.
I don't quite follow what you mean by creating the banner?