Monday, March 11, 2013

How to Add Advertisements to Your iPhone Apps



1. Choose your advertisement platform. Numerous options are available, all of which can be utilized free. Some of the more common platforms include PurpleTalk, Flurry, AdMob and iAd (see Resources).

2. Select the size of your banner. This banner serves as the space upon which your ads are displayed and can be either 320-by-50 pixels or 480-by-32 pixels in size, depending on whether you want your ad aligned horizontally or vertically on the iPhone screen.

3. Use either HTML or a graphical user interface builder program, such as Mac's Interface Builder or Window's Autolt, to move your banner to the ideal location. Although the placement of your advertisement is entirely your choice, Apple recommends that you place it on the bottom of the screen and avoid placing it on any moving elements, such as ScrollView or TableView.

4. Insert the HTML messages 'bannerViewDidLoadAd' and 'didFailToRecieveAdWithError' into the HTML encoding of your iPhone advertisement. This way, when connectivity issues prevent ads from being downloaded to your banner, the banner disappears, thus eliminating ugly and unnecessary blank space from your application's screen.

5. Insert the messages 'bannerViewActionShouldBegin' and 'bannerViewActionDidFinish' into your HTML encoding. This ensures that your application temporarily pauses when your banner is expanded to a full sized advertisement.

6. Launch your app and test the advertisement to make sure that it is operating properly and is desirably positioned.

No comments:

Post a Comment