Ads for iOS
by Jon (Updated on 2014-01-29)
- Showing / Hiding Ads
- Ad Events
- Controlling the Position
- Alternative Networks
Games on the App Store can make money by displaying ads. For the iOS platform, your best bet for making money is to display iAds, Apple’s own ad network.
If you're out to maximize revenue, consider a sponsorship instead.
Showing / Hiding Ads
To display an ad, you must tell the ad to show. This is done using the show/hide ad block under Game > Mobile.
Stencyl provides events for ads. Specifically...
- An ad is viewed (clicked on)
- An ad is closed
- The ad area loads
- The ad area fails to load
These events can be found under the Mobile > Ads item under the Add Event dropdown.
Controlling Ad Position
Ad Position is set in Game Settings > Mobile > Monetization using the Ad Position dropdown. You can choose between Top or Bottom positioning.
Why doesn't the ad show?
During testing, iAds can randomly fail to show. This is because Apple deliberately causes them to fail (randomly), so that you can test how your app performs in these scenarios.
Even in cases where an ad displays, it may take 30 seconds, a minute or even longer for the ad to display if the ad inventory is empty at the time.
Avoid covering up the screen
When iAds are displayed, they will cover up a small part of the screen. You should avoid displaying crucial game elements under an ad, such as HUD elements. The height of mobile ad block (under Game > Mobile) provides the height, so you can lay your game out accordingly.
Officially, Stencyl only supports iAds. However, through free, user-created extensions, other ad networks are supported. These include:
As these extensions see further adoption and development, we may consider integrating them as core features in the future.