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

The debugger


We're not all perfect, and sometimes we'll make mistakes when writing our JavaScript code; fortunately, iAd Producer has two built-in tools it uses to highlight and discover errors in your code.

Error checking syntax

If you have an error with your code syntax—the rules that define the structure of your code, iAd Producer will prompt you when you try to save that JavaScript file. iAd Producer identifies the line where your error occurs and allows you to save the file anyway (not recommended) or edit it.

General syntactical errors you should check for include:

  • Forgetting to end a line with a semicolon.

  • Not separating an object or array values with a comma.

  • Including a comma on the last item in an array or an object. For example, ['item one', 'item two', last item',] would be incorrect as there is an extra comma at the end.

  • Using the incorrect case. JavaScript and its variables are case sensitive, so thisVariable and ThisVARIABLE are considered two separate values.

  • Forgetting to close...