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 — tweeting the tweet


As not every device will necessarily be running iOS 5, we'll create a check to ensure that the device supports Twitter, and then let the user tweet and share an update about our brand:

  1. 1. Open the Dino Stores projectwe used in the last exercise. We'll add a button to the menu screen that'll open up the Twitter dialog. Open the menu page on the canvas and then drag the button from the object library.

  2. 2. Position the menu near the bottom of the page and expand it to fill the width. Update the text with a call to action, such as Tweet a dino fact!. Your button may look a little like the following screenshot:

  3. 3. Click and select the button, and select Execute JavaScript as the Touched Up Inside action to create the event and automatically open the code editor.

  4. 4. Remove the placeholder comment //Code here and replace it with the following code:

    if(window.ad.twitterComposer) {
    window.ad.twitterComposer.text = 'The longest dinosaur was Seismosaurus, was as long...