34,333
edits
Changes
→= Creating an Example iAds iPad Application
Given these requirements and possibilities it is important that the application code keep track of when an ad is displayed and the events that may unfold as a result of a user interacting with that ad. Fortunately this can easily be achieved by implementing a number of delegate methods defined in the ADBannerViewDelegate protocol as outlined later in this chapter.
In the remainder of this chapter we will work step by step through the creation of a simple iOS 5 iPad application that includes an iAd banner view advertisement. Begin this tutorial by launching Xcode and creating a new iOS iPad application project named iAdApp using the Single View Application template.
The ultimate goal of this example is to create an application consisting of a table view and an iAd banner view. The banner will be configured to only appear when an ad is successfully downloaded from the iAds server and will change format to match the orientation of the device.
== Adding the iAds Framework to the Xcode Project ==