Username or E-mail
Password (Forgot?)
New? Sign Up
Join or Sign In
Forums Stencylpedia Stencyl TV Translations Go Pro - Plans & Pricing Download Stencyl


Switch to Book Layout

1: Getting Started

  • Getting Started
  • Crash Course
  • Crash Course 2
  • StencylForge

2: Building Logic

  • What is a Behavior?
  • Creating a Behavior
  • Attributes
  • Game Attributes
  • Attribute Types
  • Events
  • Our Behaviors

3: Actors

  • What are Actors?
  • Animations
  • Motion & Forces
  • Physics
  • Controls
  • Collisions & Groups
  • Killing vs. Recycling
  • Tweening
  • Effects
  • Chapter 3 Challenge

4: Scenes

  • Scene Basics
  • The Camera
  • Tilesets
  • Regions
  • Drawing Text & HUDs
  • Changing Scenes
  • Music, Sounds & Channels
  • Backgrounds
  • Customizing Actors
  • Chapter 4 Challenge

5: Game Mechanics

  • Saving
  • Pausing
  • 3rd Party Services
  • Web Requests

6: Advanced Topics

  • Get/Set Attributes
  • Custom Events
  • Blending Modes
  • Lists
  • Custom Blocks
  • Continuous Collisions

7: Testing & Tuning

  • Testing Games
  • Optimizing Performance 1
  • Optimizing Performance 2

8: The Last 10%

  • Flash Publishing
  • Standalone Apps
  • iOS App Store
  • Chrome Store
  • Making Money

M1: Mobile - Intro

  • Getting Started
  • Testing on your Device
  • Flash -> iOS Guide

M2: Mobile - Basics

  • Atlases
  • Drawing Text
  • Retina Display
  • Accelerometer
  • Joystick
  • Universal Games

M3: Mobile - Services

  • iAds
  • Game Center
  • In-App Purchases

M4: Mobile - Publishing

  • Debugging
  • Publishing to the App Store
  • Optimizing Performance
  • Promoting your Game

A: Troubleshooting

  • Showstoppers
  • General FAQ
  • iOS FAQ
  • The 90% Memory Warning
  • Recovering Broken Games
  • Can't Export to SWF
  • Reloading Documents
  • Generating Logs
  • Flash Security Settings
  • How to Report Bugs

B: How-To Guides

  • Importing Assets
  • Scene Designer
  • Code Mode
  • Font Editor
  • Pencyl (Image Editor)
  • Tile Editor (Shapes)
  • Game Cleaner

C: Reference

  • Glossary
  • Block Reference
  • Useful Shortcuts
  • Stencyl API

D: Resources

  • Stencyl TV
  • Abigayl's Guides
  • Giving Critiques
  • Creating Extensions
  • Translating Stencyl
  • Credits

3.0 Drafts (In Progress)

  • What's New in Stencyl 3.0?
  • Setup (Android)
  • Setup (Desktop)
  • Setup (iOS) - Concepts
  • Setup (iOS) - Mac
  • Setup (iOS) - Windows
  • Testing iOS on Windows
  • iOS Troubleshooter

  • Mobile App Scaling
  • Full Screen Mode
  • Simple Physics
  • Backgrounding an App

  • iOS App Store
  • Mac App Store
  • Windows Store
  • Google Play
  • HTML5

  • Android Ads
  • Android Purchases (WIP)
  • 4" Form Factor (iPhone 5)
  • Mobile Input
  • Mobile Features

  • Extending the Engine
  • iOS / Android Extensions
  • Developing the Official Extensions
  • Developing the Engine

  • iAds (Revised)
  • Game Center (Revised)
  • iOS Purchases (Revised)
  • Atlases (Revised)
  • Drawing Text (Revised)
  • Joystick (Revised)
  • Accelerometer (Revised)
  • Sounds (Revised, WIP)
  • Debugging (Revised, WIP)
  • iOS Performance (Revised)
Level: Beginner

Ads for iOS

Contents

  • Introduction
  • Guide (Stencyl 3.0)
  • Guide (Stencyl 2.2 and below)
  • Tips

 

Introduction

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.

Ad Events

Stencyl 3.0 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.

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)

Showing Ads

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.

 

Tips

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!
2 Comments
Jon
I've revised this article for Stencyl 3.0.
1 1 month, 1 week ago
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



Commenting Guidelines

Sign In to Comment

Make Games

  • What is Stencyl?
  • Roadmap
  • Pricing

Play

  • Arcade
  • Showcase

Community

  • Forums
  • Chat
  • Translations

Help

  • Stencylpedia
  • Stencyl TV

About Us

  • Blog
  • Contact Us
  • Press
  • Privacy
Follow Stencyl on Twitter



© 2013 Stencyl, LLC.