Book Image

iAd Production Beginner's Guide

By : Ben Collier
Book Image

iAd Production Beginner's Guide

By: Ben Collier

Overview of this book

Think of an iAd as a micro-app contained within an app on a user's iPhone or iPad that they've downloaded from the App Store. When the user taps your advert's banner it bursts into life filling the entire screen of their device. iAd Beginner's Guide takes you through the start to finish process of building rich, compelling, interactive iAds. You will learn to create beautiful multi-page ads with store finders, social sharing, 3D images and video galleries. You will create ads that utilize the powerful technologies in the iPhone to make your brand shine. Once you have engaged the user you can carry out targeted advertising campaigns with location-based coupons, store finders and social engagement. Using the iTunes Store you will see how it's even possible to add one-click digital content purchasing right within your ad. Learn how iAd producer manages all the HTML5, JavaScript, and CSS3 behind your iAd. You will be creating emotive, gripping and effective mobile advertising campaigns in no time.
Table of Contents (18 chapters)
iAd Production
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface

Understanding your iAd


An iAd is essentially a rich dynamic webpage contained within an application a user has installed. For the most part, we don't need to be concerned with what's going on, as the tools Apple provides manage this for us. That having been said, it is good to have an understanding of the magic that powers your iAd.

HTML5 is the underlying technology of the iAd framework. It is based on the future of the web with the next generation of HTML (and mistakenly marketed as including enhancements to JavaScript and CSS). Our iAds can use HTML5 in conjunction with many of the latest features in JavaScript and CSS.

Structuring with HTML

HTML5, the fifth generation of HTML (Hypertext Markup Language), is the content and semantic structure of your page.

Video, audio, and other things that traditionally would require a plug-in, such as Flash (which iOS famously doesn't support), can now be done with HTML5.

Note

For those curious, if you right-click on a webpage and choose View Source, you can look at the underlying HTML that creates the structure and contains the content of that page.

Styling with CSS3

The third revision of CSS (Cascading Style Sheets) allows visual styling in your iAd. With CSS3, styling of rounded corners and background gradients can be done without images, which means that your iAd is lightweight and delivers your brand message much faster to the user. CSS3 has rich animation capacity, which can bring life to your iAd and banner.

CSS3 has smooth, hardware-accelerated 3D effects that you can apply to your iAd assets, combined with animations. Rich 3D motion adds to the interactivity of your ad.

Interacting with JavaScript

JavaScript is a programming language used to control the interactivity inside your iAd. Whenever tapping or pinching somewhere causes interaction with your iAd, behind the scenes, JavaScript will be controlling this. JavaScript is able to access user location to find local stores and provide location-sensitive promotions. JavaScript can be used to remotely fetch the latest offers and information from your website, using a technology called AJAX to create a dynamic, up-to-date experience.

Arranging the files

Each iAd is a folder full of the HTML, CSS, JavaScript, and media used for your banner and ad unit. In the following screenshot, we can see the file structure of a typical iAd:

If you wanted to, you could create an entire iAd using just a text editor to manipulate these files. Luckily, iAd Producer creates and updates these files for us, when we're using it to create our iAd.