Using the iAd Service

From Appmethod Topics
Jump to: navigation, search

Go Up to Adding Advertising to Your Mobile Apps

iAd is Apple’s advertising service for iOS. This topic describes how to place ads from iAd in your applications using FireMonkey. See Adding Advertising to Your Mobile Apps for more general information.

Note: Read iOS Mobile Application Development before you continue. The following information complements the main documentation topic about iOS development.

Supported Devices

FireMonkey supports iAd on any supported iOS device.


Before you can use the iAd service, in addition to preparing your development environment:

Configuring Your Application for iAd in iTunes Connect

  1. To use and test the iAd service in your application, you must first create an entry for your application in iTunes Connect.
  2. After you have an entry for your application, open the Manage Your Apps module of iTunes Connect and open the App Summary page of your application.
  3. Click Set Up iAd Network on the right-hand side of the App Summary page.
  4. Then click Enable iAds and click Save.

Adding iAd Support to Your Mobile Apps

Note: To learn how to add advertising to your mobile applications, read Adding Advertising to Your Mobile Apps. This section only provides documentation for some additional features of the iAd service.

Canceling an Ad Action at Any Time

When your user taps an ad, this triggers an action. This action typically consists either of a full-screen version of the ad, or of opening a URL on a Web browser. See Handling User Interaction with Ads.

At any point, if your application requires your user’s attention, you can check if there is an ad action in progress, and you can stop this action:

Object Pascal:

if MyBannerAd.IsActionInProgress then


if (MyBannerAd->IsActionInProgress())
Note: Canceling ad actions affects your revenue from advertisement. For more information, see the Apple documentation.

Testing Your iAds

The iAd service automatically displays test or real ads depending on how you built your application:

See Also