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

Time for action — customizing the logs


We'll customize our log messages to ensure that they're logical and understandable when we later come to analyze them. In order to customize the logs, follow the ensuing steps:

  1. 1. We'll need an iAd Producer project that contains custom events. For this exercise, let's use the Coffee Beans ad that we made earlier.

  2. 2. Select an object that has custom events set, for example, the Tell a Friend button on the menu page of our Coffee Beans project. Open the inspector pane, and expand the Properties and Analytics sections. Update the Outlet name to something meaningful, such as tellAFriend.

    Note

    Notice that we're using the camel case naming convention for the outlet name. Because outlets are exposed in JavaScript, we should follow the same conventions as if we were writing JavaScript directly.

  3. 3. Now, tick the box Log Events, to enable logging for this object:

  4. 4. You'll need to do this for every custom object that you want to track data for. Turn on the logging...