1: Getting Started
2: Building Logic
5: Game Mechanics
6: Advanced Topics
7: Testing & Tuning
8: The Last 10%
M1: Mobile - Intro
M2: Mobile - Basics
M3: Mobile - Services
M4: Mobile - Publishing
B: How-To Guides
3.0 Drafts (In Progress)
Ads for iOS
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.
Tip: In practice, ads perform best for games which are frequently downloaded and have replay value. If you're out to maximize revenue, consider a sponsorship or using in-app purchases instead.
Guide (Stencyl 3.0)
Showing / Hiding Ads
In Stencyl 3.0, you must explicitly tell the ad to show (it no longer automatically shows). This is done using the show/hide ad block under Game > Mobile.
Stencyl 3.0 provides events for ads. Specifically...
These events can be found under the Mobile > Ads item under the Add Event dropdown.
Tip: We recommend pausing the game when an ad is clicked on and resuming it when the ad is dismissed, otherwise the game will continue to run while the ad is overlayed over everything else.
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.
Guide (Stencyl 2.2 and below)
To enable iAds, check the Enable iAds box inside Mobile Game Settings. This will cause the ad to automatically appear at the earliest possible time.
Note: iAds do not appear immediately because they need to be loaded entirely before displaying. This process can sometimes take 30 - 60 seconds. In some cases, ads will not show at all.
Dynamically Showing / Hiding Ads
If you need to hide or reshow an add at any time, use the show/hide iAd block under Game > iOS APIs.
Why doesn't the ad show?
Especially 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.
Last Updated: 2013-04-10 by Jon
4887 have read this article
Disclaimer: The Stencyl Team does not actively monitor comments on articles. If you're seeking help for your game, please ask a question on the forums. Thanks!