iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps...

181
These are confidential sessions—please refrain from streaming, blogging, or taking pictures Session 613 iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks

Transcript of iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps...

Page 1: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

These are confidential sessions—please refrain from streaming, blogging, or taking pictures

Session 613

iAd Integration and Best Practices

Nathan de VriesiOS Apps and Frameworks

Page 2: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Promotion Revenue

Page 3: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Revenue

Page 4: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production
Page 5: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Developer Benefits

Core Concepts

Optimizing Ad Performance

Joining iAd App Network

App Integration

Page 6: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Developer Benefits

Core Concepts

Optimizing Ad Performance

Joining iAd App Network

App Integration

Page 7: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Delights your customersDeveloper Benefits

Page 8: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Delights your customersDeveloper Benefits

•High production values

Page 9: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Delights your customersDeveloper Benefits

•High production values• Rich media

Page 10: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Delights your customersDeveloper Benefits

•High production values• Rich media• Seamless integration

Page 11: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Delights your customersDeveloper Benefits

•High production values• Rich media• Seamless integration• Immersive

Page 12: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Delights your customersDeveloper Benefits

•High production values• Rich media• Seamless integration• Immersive• Stay in your app

Page 13: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Preserves privacyDeveloper Benefits

Page 14: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Preserves privacyDeveloper Benefits

Page 15: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

World’s best brandsDeveloper Benefits

Page 16: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Developer BenefitsExpanding globally

Page 17: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

US CAUK FR DE IT ES AU NZ MXJP

Developer BenefitsExpanding globally

Page 18: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Path to revenueDeveloper Benefits

Page 19: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Path to revenueDeveloper Benefits

70%

Your Share

Page 20: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Easy to implementDeveloper Benefits

Page 21: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Easy to implementDeveloper Benefits

•No additional SDKs

Page 22: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Easy to implementDeveloper Benefits

•No additional SDKs•Up and running with minimal code

Page 23: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Easy to implementDeveloper Benefits

•No additional SDKs•Up and running with minimal code•Great documentation and sample code

Page 24: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Easy to implementDeveloper Benefits

•No additional SDKs•Up and running with minimal code•Great documentation and sample code• Even easier with iOS 7!

Page 25: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Developer Benefits

Core Concepts

Optimizing Ad Performance

Joining iAd App Network

App Integration

Page 26: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Developer Benefits

Core Concepts

Optimizing Ad Performance

Joining iAd App Network

App Integration

Page 27: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

iAd app networkCore Concepts

Page 28: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

iAd app networkCore Concepts

+Apple Developers YouBrands + +

Page 29: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Ad requestsCore Concepts

Page 30: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Ad requestsCore Concepts

iAd Framework

Page 31: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Ad requestsCore Concepts

iAd Framework

Page 32: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Ad requestsCore Concepts

Ad Request

iAd Framework

Page 33: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Ad requestsCore Concepts

Ad Request

AdsiAd Framework

Page 34: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Fill rateCore Concepts

Ad Request

Ads

Page 35: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Fill rateCore Concepts

Ads Delivered

Ad Requests

Page 36: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Impressions and tap-throughCore Concepts

Page 37: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Tap-through rateCore Concepts

Page 38: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Tap-through rateCore Concepts

Tap-throughs

Impressions

Page 39: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Developer Benefits

Core Concepts

Optimizing Ad Performance

Joining iAd App Network

App Integration

Page 40: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Developer Benefits

Core Concepts

Optimizing Ad Performance

Joining iAd App Network

App Integration

Page 41: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Focus on the customerOptimizing Ad Performance

Page 42: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Focus on the customerOptimizing Ad Performance

•Utility and usefulness

Page 43: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Focus on the customerOptimizing Ad Performance

•Utility and usefulness• Encourage loyalty

Page 44: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Focus on the customerOptimizing Ad Performance

•Utility and usefulness• Encourage loyalty•Network effects

Page 45: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Focus on the customerOptimizing Ad Performance

•Utility and usefulness• Encourage loyalty•Network effects• Results in more requests

Page 46: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Place ads smartlyOptimizing Ad Performance

Page 47: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Place ads smartlyOptimizing Ad Performance

• Recognize high-use areas

Page 48: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Place ads smartlyOptimizing Ad Performance

• Recognize high-use areas•Avoid accidental taps

Page 49: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Place ads smartlyOptimizing Ad Performance

• Recognize high-use areas•Avoid accidental taps•User context is important

Page 50: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Consider customer locationOptimizing Ad Performance

Page 51: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Consider customer locationOptimizing Ad Performance

• Sell to iAd App Network countries

Page 52: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Consider customer locationOptimizing Ad Performance

• Sell to iAd App Network countries• Target your marketing

Page 53: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Consider customer locationOptimizing Ad Performance

• Sell to iAd App Network countries• Target your marketing• Localize your apps

Page 54: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

SeasonalityOptimizing Ad Performance

Page 55: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

SeasonalityOptimizing Ad Performance

• Consumer spending is seasonal

Jan Feb Mar Apr May June Jul Aug Sep Oct Nov Dec

Cons

umer

spe

ndin

g

Page 56: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

SeasonalityOptimizing Ad Performance

• Consumer spending is seasonal• So is advertiser spending

Jan Feb Mar Apr May June Jul Aug Sep Oct Nov Dec

Cons

umer

spe

ndin

g

Page 57: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

SeasonalityOptimizing Ad Performance

• Consumer spending is seasonal• So is advertiser spending•Market accordingly:

■ Start of summer■ Back to school■ Holiday seasons

Jan Feb Mar Apr May June Jul Aug Sep Oct Nov Dec

Cons

umer

spe

ndin

g

Page 58: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Ads

Fill-Rate

Tap-Throughs

Impressions

The feedback loopOptimizing Ad Performance

Page 59: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Ads

Fill-Rate

Tap-Throughs

Impressions

The feedback loopOptimizing Ad Performance

Page 60: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Developer Benefits

Core Concepts

Optimizing Ad Performance

Joining iAd App Network

App Integration

Page 61: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Developer Benefits

Core Concepts

Optimizing Ad Performance

Joining iAd App Network

App Integration

Page 62: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Joining iAd App Network

http://itunesconnect.apple.com/

Page 63: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Joining iAd App Network

http://itunesconnect.apple.com/

Complete iAd contract

Enable iAd for your app

Submit your app for review

Page 64: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Developer Benefits

Core Concepts

Optimizing Ad Performance

Joining iAd App Network

App Integration

Page 65: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Developer Benefits

Core Concepts

Optimizing Ad Performance

Joining iAd App Network

App Integration

Page 66: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

App IntegrationBanner

Page 67: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Banner

Page 68: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Banner

• Slim device width view

Page 69: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Banner

• Slim device width view• Placed at bottom of content

Page 70: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Banner

• Slim device width view• Placed at bottom of content• Continuous ad loading

Page 71: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Banner

• Slim device width view• Placed at bottom of content• Continuous ad loading• Fullscreen on tap

Page 72: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Banner

• Slim device width view• Placed at bottom of content• Continuous ad loading• Fullscreen on tap• iPhone and iPad support

Page 73: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Three easy stepsBanner

Page 74: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Three easy stepsBanner

1. Link iAd framework

Page 75: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Three easy stepsBanner

1. Link iAd framework2. Import iAd header

#import <iAd/iAd.h>

MyViewController *myViewController = ...myViewController.canDisplayBannerAds = YES;

Page 76: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Three easy stepsBanner

1. Link iAd framework2. Import iAd header3. Configure view controllers

#import <iAd/iAd.h>

MyViewController *myViewController = ...myViewController.canDisplayBannerAds = YES;

Page 77: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Ad load and displayBanner

Root View

Page 78: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

• view becomes originalContentView

Ad load and displayBanner

Root ViewWrapped “original content” view

Page 79: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

• view becomes originalContentView

•Ad requests sent

Ad load and displayBanner

Root ViewWrapped “original content” view

Ad RequestAd

Unloaded

Page 80: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

• view becomes originalContentView

•Ad requests sent

•Banner loads

Ad load and displayBanner

Root ViewWrapped “original content” view

Ad RequestAd

UnloadedLoaded

Page 81: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

• view becomes originalContentView

•Ad requests sent

•Banner loads

•Banner moves on-screen and originalContentView resizes

Ad load and displayBanner

Root ViewResized “original

content” view

UnloadedLoaded

Page 82: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Tap-throughBanner

Page 83: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Tap-throughBanner

• Fullscreen ad on tap

Page 84: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Tap-throughBanner

• Fullscreen ad on tap

•Pause media in -viewWillDisappear:

Page 85: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Tap-throughBanner

• Fullscreen ad on tap

•Pause media in -viewWillDisappear:

•Resume media in -viewDidAppear:

Page 86: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Ad unload and hidingBanner

Wrapped “original content” view

Loaded

Page 87: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

•Banner moves off-screen

Ad unload and hidingBanner

Wrapped “original content” view

UnloadedLoaded

Page 88: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

•Banner moves off-screen• originalContentView resized

Ad unload and hidingBanner

Wrapped “original content” view

UnloadedLoaded

Page 89: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Toggling display on and offBanner

// Game startedviewController.canDisplayBannerAds = NO;

// Game paused, menu showingviewController.canDisplayBannerAds = YES;

Page 90: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Toggling display on and offBanner

•Disable based on app context

// Game startedviewController.canDisplayBannerAds = NO;

// Game paused, menu showingviewController.canDisplayBannerAds = YES;

Page 91: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Toggling display on and offBanner

•Disable based on app context

•Remember to re-enable!

// Game startedviewController.canDisplayBannerAds = NO;

// Game paused, menu showingviewController.canDisplayBannerAds = YES;

Page 92: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Testing integrationBanner

Page 93: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Testing integrationBanner

•Adjust fill rate

Page 94: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Testing integrationBanner

•Adjust fill rate

•Adjust ad refresh rate

Page 95: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Testing integrationBanner

•Adjust fill rate

•Adjust ad refresh rate

•Only affects your apps

Page 96: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Testing integrationBanner

•Adjust fill rate

•Adjust ad refresh rate

•Only affects your apps

Page 97: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

DemoBanner Integration

David WilsoniOS Apps and Frameworks

Page 98: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

App IntegrationInterstitial

Page 99: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Interstitial

Page 100: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

• Immediate fullscreen display

Interstitial

Page 101: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

• Immediate fullscreen display• iPad since iOS 4.3

Interstitial

Page 102: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

• Immediate fullscreen display• iPad since iOS 4.3• iPhone in iOS 7

Interstitial

Page 103: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Current View Controller Next View Controller

Automatic presentationInterstitial

nextController.interstitialPresentationPolicy = ADInterstitialPresentationPolicyAutomatic;

[currentController.navigationController pushViewController:nextController animated:YES];

Page 104: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Current View Controller Next View Controller

Automatic presentationInterstitial

nextController.interstitialPresentationPolicy = ADInterstitialPresentationPolicyAutomatic;

[currentController.navigationController pushViewController:nextController animated:YES];

nextController.interstitialPresentationPolicy = ADInterstitialPresentationPolicyAutomatic;

[currentController.navigationController pushViewController:nextController animated:YES];

Page 105: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Current View ControllerNext View Controller

Automatic presentationInterstitial

nextController.interstitialPresentationPolicy = ADInterstitialPresentationPolicyAutomatic;

[currentController.navigationController pushViewController:nextController animated:YES];

Page 106: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Single View Controller App

Manual presentationInterstitial

controller.interstitialPresentationPolicy = ADInterstitialPresentationPolicyManual;

(...time passes...)

[controller requestInterstitialAdPresentation];

Page 107: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Single View Controller App

Manual presentationInterstitial

controller.interstitialPresentationPolicy = ADInterstitialPresentationPolicyManual;

(...time passes...)

[controller requestInterstitialAdPresentation];

controller.interstitialPresentationPolicy = ADInterstitialPresentationPolicyManual;

(...time passes...)

[controller requestInterstitialAdPresentation];

Page 108: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Single View Controller App

Manual presentationInterstitial

controller.interstitialPresentationPolicy = ADInterstitialPresentationPolicyManual;

(...time passes...)

[controller requestInterstitialAdPresentation];

controller.interstitialPresentationPolicy = ADInterstitialPresentationPolicyManual;

(...time passes...)

[controller requestInterstitialAdPresentation];

Page 109: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Preparing earlyInterstitial

Page 110: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Preparing earlyInterstitial

•Don’t miss early impressions!

Page 111: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Preparing earlyInterstitial

•Don’t miss early impressions!• Start ad requests early

- (BOOL)application:(UIApplication *)application

didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

...

[UIViewController prepareInterstitialAds];

...

}

Page 112: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

- (BOOL)application:(UIApplication *)application

didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

...

[UIViewController prepareInterstitialAds];

...

}

Preparing earlyInterstitial

•Don’t miss early impressions!• Start ad requests early

Page 113: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

DemoInterstitial Integration

David WilsoniOS Apps and Frameworks

Page 114: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

App IntegrationIAB “Medium Rectangle”

Page 115: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

IAB “Medium Rectangle”

aaaa===aaaaaaaa=aaaaaaaaaaaaaaaaa

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa=====

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

Page 116: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

IAB “Medium Rectangle”

• Positioned inline baaa===aaaaaaaa=aaaaaaaaaaaaaaaaa

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa=====

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

Page 117: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

IAB “Medium Rectangle”

• Positioned inline• Standardized “IAB” size

baaa===aaaaaaaa=aaaaaaaaaaaaaaaaa

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa=====

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

250px

300px

Page 118: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

IAB “Medium Rectangle”

• Positioned inline• Standardized “IAB” size•Automatic cycling

baaa===aaaaaaaa=aaaaaaaaaaaaaaaaa

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa=====

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

Page 119: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

IAB “Medium Rectangle”

• Positioned inline• Standardized “IAB” size•Automatic cycling• Fullscreen ad on tap

baaa===aaaaaaaa=aaaaaaaaaaaaaaaaa

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa=====

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

Page 120: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

IAB “Medium Rectangle”

• Positioned inline• Standardized “IAB” size•Automatic cycling• Fullscreen ad on tap• Introduced in iOS 6

baaa===aaaaaaaa=aaaaaaaaaaaaaaaaa

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa=====

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

Page 121: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

IAB “Medium Rectangle”

• Positioned inline• Standardized “IAB” size•Automatic cycling• Fullscreen ad on tap• Introduced in iOS 6• iPad only

baaa===aaaaaaaa=aaaaaaaaaaaaaaaaa

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa=====

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

Page 122: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

View creationMedium Rectangle

Page 123: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

View creationMedium Rectangle

#import <iAd/iAd.h>

adView = [[ADBannerView alloc] initWithAdType:ADAdTypeMediumRectangle];

adView.delegate = self;

...

@interface MyViewController : UIViewController <ADBannerViewDelegate>

@end

Page 124: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

View creationMedium Rectangle

#import <iAd/iAd.h>

adView = [[ADBannerView alloc] initWithAdType:ADAdTypeMediumRectangle];

adView.delegate = self;

...

@interface MyViewController : UIViewController <ADBannerViewDelegate>

@end

Page 125: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

View creationMedium Rectangle

#import <iAd/iAd.h>

adView = [[ADBannerView alloc] initWithAdType:ADAdTypeMediumRectangle];

adView.delegate = self;

...

@interface MyViewController : UIViewController <ADBannerViewDelegate>

@end

Page 126: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

View creationMedium Rectangle

#import <iAd/iAd.h>

adView = [[ADBannerView alloc] initWithAdType:ADAdTypeMediumRectangle];

adView.delegate = self;

...

@interface MyViewController : UIViewController <ADBannerViewDelegate>

@end

Page 127: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

View creationMedium Rectangle

#import <iAd/iAd.h>

adView = [[ADBannerView alloc] initWithAdType:ADAdTypeMediumRectangle];

adView.delegate = self;

...

@interface MyViewController : UIViewController <ADBannerViewDelegate>

@end

Page 128: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Load and displayMedium Rectangle

@implementation MyViewController

...

@end

Unloaded

Page 129: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Load and displayMedium Rectangle

@implementation MyViewController

- (void)bannerViewDidLoadAd:(ADBannerView *)banner{

}

@end

Loaded

Page 130: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Load and displayMedium Rectangle

@implementation MyViewController

- (void)bannerViewDidLoadAd:(ADBannerView *)banner{ [self.view addSubview:banner]; [self.view layoutIfNeeded];}

@end

Loaded

Page 131: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Load and displayMedium Rectangle

@implementation MyViewController

- (void)bannerViewDidLoadAd:(ADBannerView *)banner{ [self.view addSubview:banner]; [self.view layoutIfNeeded];}

@end

Loaded

Page 132: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Tap-throughMedium Rectangle

Page 133: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Tap-throughMedium Rectangle

• Fullscreen ad on tap

Page 134: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Tap-throughMedium Rectangle

• Fullscreen ad on tap

•Pause media in -viewWillDisappear:

Page 135: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Tap-throughMedium Rectangle

• Fullscreen ad on tap

•Pause media in -viewWillDisappear:

•Resume media in -viewDidAppear:

Page 136: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

UnloadMedium Rectangle

@implementation MyViewController

...

@end

Loaded

Page 137: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

UnloadMedium Rectangle

@implementation MyViewController

- (void)bannerView:(ADBannerView *)banner didFailToReceiveAdWithError:(NSError *)error{

}

@end

LoadedUnloaded

Page 138: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

UnloadMedium Rectangle

@implementation MyViewController

- (void)bannerView:(ADBannerView *)banner didFailToReceiveAdWithError:(NSError *)error{ [banner removeFromSuperview]; [self.view layoutIfNeeded];}

@end

Unloaded

Page 139: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

UnloadMedium Rectangle

@implementation MyViewController

- (void)bannerView:(ADBannerView *)banner didFailToReceiveAdWithError:(NSError *)error{ [banner removeFromSuperview]; [self.view layoutIfNeeded];}

@end

Unloaded

Page 140: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Testing integrationMedium Rectangle

Page 141: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

•Adjust fill rate

•Adjust ad refresh rate

Testing integrationMedium Rectangle

Page 142: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

•Adjust fill rate

•Adjust ad refresh rate

• Ensure there’s no clipping

Testing integrationMedium Rectangle

Page 143: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

DemoMedium Rectangle Integration

David WilsoniOS Apps and Frameworks

Page 144: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

App IntegrationPre-Roll Video

Page 145: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Pre-Roll Video

▶ ▶ ▶ ▶

▶ ▶ ▶ ▶

▶ ▶

Page 146: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Pre-Roll Video

•New on iOS 7▶ ▶ ▶ ▶

▶ ▶ ▶ ▶

▶ ▶

Page 147: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Pre-Roll Video

•New on iOS 7• Integrated with media player

▶ ▶ ▶ ▶

▶ ▶ ▶ ▶

Page 148: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Pre-Roll Video

•New on iOS 7• Integrated with media player• Plays before regular video

Page 149: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Pre-Roll Video

• Fullscreen ad on tap

•New on iOS 7• Integrated with media player• Plays before regular video

Page 150: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Pre-Roll Video

• Fullscreen ad on tap• Inline playback supported

•New on iOS 7• Integrated with media player• Plays before regular video

Page 151: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Pre-Roll Video

• Fullscreen ad on tap• Inline playback supported• iPhone and iPad

•New on iOS 7• Integrated with media player• Plays before regular video

Page 152: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Creating and playing Pre-Roll Video

Page 153: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Creating and playing Pre-Roll Video

#import <MediaPlayer/MediaPlayer.h>

#import <iAd/iAd.h>

Page 154: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Creating and playing Pre-Roll Video

#import <MediaPlayer/MediaPlayer.h>

#import <iAd/iAd.h>

moviePlayer = [MPMoviePlayerController new];

moviePlayer.contentURL = [NSURL URLWithString:@”...”];

Page 155: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Creating and playing Pre-Roll Video

#import <MediaPlayer/MediaPlayer.h>

#import <iAd/iAd.h>

moviePlayer = [MPMoviePlayerController new];

moviePlayer.contentURL = [NSURL URLWithString:@”...”];

[moviePlayer playPrerollAdWithCompletionHandler:^(NSError *error) {

// Check if error is non-nil during development

[moviePlayer play];

}];

Page 156: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Creating and playing Pre-Roll Video

#import <MediaPlayer/MediaPlayer.h>

#import <iAd/iAd.h>

moviePlayer = [MPMoviePlayerController new];

moviePlayer.contentURL = [NSURL URLWithString:@”...”];

[moviePlayer playPrerollAdWithCompletionHandler:^(NSError *error) {

// Check if error is non-nil during development

[moviePlayer play];

}];

Page 157: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Creating and playing Pre-Roll Video

#import <MediaPlayer/MediaPlayer.h>

#import <iAd/iAd.h>

moviePlayer = [MPMoviePlayerController new];

moviePlayer.contentURL = [NSURL URLWithString:@”...”];

[moviePlayer playPrerollAdWithCompletionHandler:^(NSError *error) {

// Check if error is non-nil during development

[moviePlayer play];

}];

[self.view addSubview:moviePlayer.view];

[self.view layoutIfNeeded];

Page 158: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Conditional pre-rollPre-Roll Video

Page 159: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Conditional pre-rollPre-Roll Video

if ([user isPaidSubscriber]) {

[moviePlayer play];

} else {

[moviePlayer playPrerollAdWithCompletionHandler:^(NSError *error) {

[moviePlayer play];

}];

}

Page 160: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Conditional pre-rollPre-Roll Video

if ([user isPaidSubscriber]) {

[moviePlayer play];

} else {

[moviePlayer playPrerollAdWithCompletionHandler:^(NSError *error) {

[moviePlayer play];

}];

}

Page 161: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Conditional pre-rollPre-Roll Video

if ([user isPaidSubscriber]) {

[moviePlayer play];

} else {

[moviePlayer playPrerollAdWithCompletionHandler:^(NSError *error) {

[moviePlayer play];

}];

}

Page 162: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Conditional pre-rollPre-Roll Video

if ([user isPaidSubscriber]) {

[moviePlayer play];

} else {

[moviePlayer playPrerollAdWithCompletionHandler:^(NSError *error) {

[moviePlayer play];

}];

}

Page 163: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Preparing earlyPre-Roll Video

Page 164: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Preparing earlyPre-Roll Video

•Don’t miss early impressions!

Page 165: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Preparing earlyPre-Roll Video

•Don’t miss early impressions!• Start ad requests early

- (BOOL)application:(UIApplication *)application

didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

...

[MPMoviePlayerController preparePrerollAds];

...

}

Page 166: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Preparing earlyPre-Roll Video

•Don’t miss early impressions!• Start ad requests early

- (BOOL)application:(UIApplication *)application

didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

...

[MPMoviePlayerController preparePrerollAds];

...

}

Page 167: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Tips and gotchasPre-Roll Video

Page 168: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Tips and gotchasPre-Roll Video

•Don’t play content video until ad completes

Page 169: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Tips and gotchasPre-Roll Video

•Don’t play content video until ad completes•Defer notification handling

■MPMoviePlayerReadyForDisplayDidChangeNotification■MPMoviePlayerLoadStateDidChangeNotification

Page 170: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Tips and gotchasPre-Roll Video

•Don’t play content video until ad completes•Defer notification handling

■MPMoviePlayerReadyForDisplayDidChangeNotification■MPMoviePlayerLoadStateDidChangeNotification

•Defer UI customization

Page 171: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

DemoPre-roll video integration

David WilsoniOS Apps and Frameworks

Page 172: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Wrapping Up

Page 173: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

•New pre-roll video ads

Wrapping Up

Page 174: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Wrapping Up

•New pre-roll video ads•Medium rectangle ads

baaa===aaaaaaaa=aaaaaaaaaaaaaaaaa

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa=====

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

Page 175: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Wrapping Up

•New pre-roll video ads•Medium rectangle ads• Interstitials on iPhone

Page 176: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Wrapping Up

•New pre-roll video ads•Medium rectangle ads• Interstitials on iPhone•New view controller banner APIs

Page 177: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Wrapping Up

•New pre-roll video ads•Medium rectangle ads• Interstitials on iPhone•New view controller banner APIs•Optimize your app’s ad performance

Page 178: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

John GeleynseDirector, Technology [email protected]

DocumentationiOS SDK Libraryhttp://developer.apple.com/ios

Apple Developer Forumshttp://devforums.apple.com

More Information

Page 179: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

Introduction to iBooks Author Widget and iAd Rich Media Ad Development with iAd Producer 4

Russian HillWednesday 11:30am

Building Advanced iBooks HTML 5 Widgets and iAd Rich Media Ads Russian HillWednesday 3:15pm

Introducing iAd Workbench, The Best Way to Market Your App Russian HillTuesday 3:15pm

Related Sessions

Page 180: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production

iTunes Connect Lab Services Lab BFriday 10:15am

iAd Technologies Lab Media Lab AThursday 3:15pm

Labs

Internationalization Lab Frameworks Lab BFriday 11:30am

Page 181: iAd Integration and Best Practices · iAd Integration and Best Practices Nathan de Vries iOS Apps and Frameworks. Promotion Revenue. Revenue. Developer Benefits ... •High production