The iAd framework is introduced in ios 4. It does the functionality to download the advertisements from iAd network and allows your applications to earn revenue by displaying advertisements to users. Your responsibility is to design a user interface such that it can accommodate slots for advertisements. One can say that iAd framework acts as a middle tier between your application and iAd network.
When you develop your application iAd provides test advertisements for you to test it into your application to verify whether your implementation is correct or not.
To receive advertisements in a released application you need to select iAd as your advertisement network for your application before publishing it.
Before adding advertising support into your application, you must agree to the iAd network agreement. Also, you have to explicitly enable iAd in iTunes Connect for each application you want to support advertisement. As a part of the iAd network, you can control type of ads that are to be delivered to your applications.
There are two types of advertisements are supported by iAd network Banner Ad and Full-screen Ad.
1) Banner Ad: The ADBannerView class allows you to reserve a portion of the user interface to display banner Ad. Once created banner view automatically downloads ads from iAd network and displays it to the user. A user can tap the banner to view the content of the advertisement and on that tapping of the ads, the application generates revenue.
The banner ad is supported in both landscape and portrait orientation. The sizes of the banner view in both landscape and in portrait orientation are as follows:
iPhone – 480 x 32 (W x H)
iPad – 1024 x 66 (W x H)
iPhone – 320 x 50 (W x H)
iPad – 766 x 66 (W x H)
2) Full-Screen Ad: Full-Screen ad is supported in iPad only.
Before you start adding advertising support to your application, you must first agree to the iAd Network agreement. Further, you must explicitly enable iAd for each application in iTunes Connect. As a part of the iAd Network, you control the kinds of ads that are delivered to your application.
Pause Nonessential Activities While Users Interact with Advertisements :
When the user taps on an advertisement, iAd typically covers the screen and displays an interactive advertisement. Your application continues to run, but the user cannot see or interact with your application’s user interface. Instead, the user interacts with the rich media experience provided by the displayed advertisement. While an advertisement is displayed, your application’s activities should be scaled back, and features that require the user to see or hear your application’s user interface should be paused.
Canceling Advertising Negatively Impacts Your Application :
While the user interacts with an advertisement, your application continues to receive events. Once the user finishes the advertising action, control returns to your application. However, if your application receives an event that requires the user’s immediate attention, your application can programmatically cancel the advertisement to restore its user interface. Your application should only cancel advertising when it urgently needs the user’s attention. Frequently canceling advertisements can reduce the revenue generated by your application. It may also affect the inventory of advertisements that are offered to your application.