Switch to Book Layout1: Getting Started2: Building Logic
3: Actors
4: Scenes
5: Game Mechanics6: Advanced Topics7: Testing & Tuning8: The Last 10%M1: Mobile - IntroM2: Mobile - BasicsM3: Mobile - ServicesM4: Mobile - PublishingA: Troubleshooting
B: How-To Guides
C: ReferenceD: Resources3.0 Drafts (In Progress)
|
||
|
Level: Beginner
Ads for iOSContents
IntroductionGames 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 AdsIn 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. Ad EventsStencyl 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 PositionAd 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)Showing AdsTo 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 AdsIf you need to hide or reshow an add at any time, use the show/hide iAd block under Game > iOS APIs.
TipsWhy 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 screenWhen 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!
2 Comments
JasonIrby
And maybe support for full page interstitial ads between scenes? It would be handy alternative for when you don't want to give up the real estate in landscape mode for a banner ad. 1 1 year, 3 weeks ago |














