Testing iAd Applications
Testing is critical for iAd applications; by working well with iAd, your application makes it easier for the user to explore the rich media ads provided by iAd. This, in turn, results in larger revenues generated by your application.
Testing Banner Advertisements
While you are developing your application, iAd Network sends test advertisements to your application. To assist you in validating your implementation, the iAd Network occasionally returns errors to test your error handling code. You can also test your error handling support manually by turning your device’s wireless capability off.
iAd Network automatically displays the correct ad depending on the how your application binary was downloaded onto your test device, as shown in Table 4-1.
Application | Audience | Displayed Ads |
|---|---|---|
Developer build | Developer | iAd Network serves test ads. |
Ad-hoc distribution build | Beta Testers | iAd Network serves test ads. |
Signed Distribution build | End Users | iAd Network serves live ads if you signed the iAd Network Agreement and enabled advertising for your application. |
Testing Checklist
Use this checklist to assist you in testing your iAd applications.
Banner Views
Do your iAd banners change orientation with the rest of your user interface? See “Changing the Banner Size Dynamically.”
Does your application only show banners that have a loaded advertisement? See “Responding When an Advertisement Loads” and “Error Handling.”
Does your application pause other activities when the user taps a banner? See “Responding to a Touch in the Banner View.”
Does your application observe low memory warnings? See “Use Memory Efficiently” in iOS App Programming Guide.
When an iAd action finishes, are all services started again? See “Responding to a Touch in the Banner View.”
If your application cancels an iAd action, are all services started again? See “Canceling an Advertising Action.”
Do banner views appear quickly when a user moves to a new screen of content? See “Banner View Best Practices.”
Full-Screen Advertisements
Do your full-screen banners also change orientation? See “Presenting an Ad.”
Does your application pause other activities when the user taps a banner? See “Beginning an Advertising Action”
Does your application observe low memory warnings? See “Use Memory Efficiently” in iOS App Programming Guide.
When an iAd action finishes, do all services you paused start up again? See “Completing an Advertising Action.”
If your application cancels an iAd action, do all services you paused start up again? See “Canceling an Advertising Action.”
Do your full-screen advertisements expire before being displayed to the user? See “Creating an Ad Object.”
When a full-screen advertisement placed in a scroll view expires, does your application clean up the content view properly? See “An Ad Object’s Contents Only Persist For a Limited Period of Time.”
© 2011 Apple Inc. All Rights Reserved. (Last updated: 2011-09-14)