A new way to make money with your Flash games: FGL Ads

Just to confirm Flash gaming market has still a lot to say, let me introduce a new way to make money with your Flash games: FGL Ads.

FGL aka FlashGameLicense is a great player in Flash game development industry, most of my games found sponsors thanks to FGL so I was so excited to try its own ad service I made a little game just to test them.

FLG Ads seems to be a great way to generate more revenue with your game, they promise an above-average CPM and a very simple way to place ads in your game.

While I am not able to confirm the CPM yet, I can confirm these ads are one of the most easy API to use.

Let’s see a real-life example: once we are registered with FGL, we can create a new Ad Token. An Ad Token is the identifier of the game we are going to publish.

Now the game is created and we can see it in the dashboard:

Next step is download FGLAds class and add it to your project root.

In my game, I wanted the ad to be displayed before the game starts and at the end of the game, so it will look like something like that:

package {
	import flash.display.Sprite;
	...

	public class Main extends Sprite {
		// variable declaration
		private var ads:FGLAds;
		...
		public function Main() {
			// FGL-56 is my game ID
			ads=new FGLAds(stage,"FGL-56");
			// waiting for the api to be ready to call showStartupAd
			ads.addEventListener(FGLAds.EVT_API_READY, showStartupAd);
			// should it take too long to load, let's skip the ad and call enableGame function
			ads.addEventListener(FGLAds.EVT_AD_LOADING_ERROR, enableGame);
		}

		private function showStartupAd(e:Event):void {
			// showing ad popup
			ads.showAdPopup();
			// waiting for the player to close the popup
			ads.addEventListener(FGLAds.EVT_AD_CLOSED, enableGame);
		}

		private function enableGame(e:Event):void {
			// removing listeners
			ads.removeEventListener(FGLAds.EVT_AD_CLOSED, enableGame);
			ads.removeEventListener(FGLAds.EVT_AD_LOADING_ERROR, enableGame);
			// start the game
			init();
		}
		
		private function init():void{
			// here starts the game, which calls showGameOver function when the game is over
			...
		}
		
		private function showGameOver():void{
			// no need to construct again, just calling showAdPopup method
			ads.showAdPopup();
		}
	}
}

showAdPopup method has three optional arguments:

format:String – the format of the ad to request, can be FORMAT_300x250 (default) or FORMAT_90x90.

delay:Number – amount of milliseconds needed (default:3000) before an ad can be closed

timeout:Number – amount of milliseconds needed (default:0 – never) before an ad closes by itself.

And here is how an ad looks like (a bit scaled down):

I am going to release the game later this week to test ads performances. The report screen is not live yet because the service is brand new, and just like all brand new services, the first to jump in usually get the most out of it, so you should definitively give it a try.

Get the most popular Phaser 3 book

Through 202 pages, 32 source code examples and an Android Studio project you will learn how to build cross platform HTML5 games and create a complete game along the way.

Get the book

214 GAME PROTOTYPES EXPLAINED WITH SOURCE CODE
// 1+2=3
// 100 rounds
// 10000000
// 2 Cars
// 2048
// A Blocky Christmas
// A Jumping Block
// A Life of Logic
// Angry Birds
// Angry Birds Space
// Artillery
// Astro-PANIC!
// Avoider
// Back to Square One
// Ball Game
// Ball vs Ball
// Ball: Revamped
// Balloon Invasion
// BallPusher
// Ballz
// Bar Balance
// Bejeweled
// Biggification
// Block it
// Blockage
// Bloons
// Boids
// Bombuzal
// Boom Dots
// Bouncing Ball
// Bouncing Ball 2
// Bouncy Light
// BoxHead
// Breakout
// Bricks
// Bubble Chaos
// Bubbles 2
// Card Game
// Castle Ramble
// Chronotron
// Circle Chain
// Circle Path
// Circle Race
// Circular endless runner
// Cirplosion
// CLOCKS - The Game
// Color Hit
// Color Jump
// ColorFill
// Columns
// Concentration
// Crossy Road
// Crush the Castle
// Cube Jump
// CubesOut
// Dash N Blast
// Dashy Panda
// Deflection
// Diamond Digger Saga
// Don't touch the spikes
// Dots
// Down The Mountain
// Drag and Match
// Draw Game
// Drop Wizard
// DROP'd
// Dudeski
// Dungeon Raid
// Educational Game
// Elasticity
// Endless Runner
// Erase Box
// Eskiv
// Farm Heroes Saga
// Filler
// Flappy Bird
// Fling
// Flipping Legend
// Floaty Light
// Fuse Ballz
// GearTaker
// Gem Sweeper
// Globe
// Goat Rider
// Gold Miner
// Grindstone
// GuessNext
// Helicopter
// Hero Emblems
// Hero Slide
// Hexagonal Tiles
// HookPod
// Hop Hop Hop Underwater
// Horizontal Endless Runner
// Hundreds
// Hungry Hero
// Hurry it's Christmas
// InkTd
// Iromeku
// Jet Set Willy
// Jigsaw Game
// Knife Hit
// Knightfall
// Legends of Runeterra
// Lep's World
// Line Rider
// Lumines
// Magick
// MagOrMin
// Mass Attack
// Math Game
// Maze
// Meeblings
// Memdot
// Metro Siberia Underground
// Mike Dangers
// Mikey Hooks
// Nano War
// Nodes
// o:anquan
// One Button Game
// One Tap RPG
// Ononmin
// Pacco
// Perfect Square!
// Perfectionism
// Phyballs
// Pixel Purge
// PixelField
// Planet Revenge
// Plants Vs Zombies
// Platform
// Platform game
// Plus+Plus
// Pocket Snap
// Poker
// Pool
// Pop the Lock
// Pop to Save
// Poux
// Pudi
// Pumpkin Story
// Puppet Bird
// Pyramids of Ra
// qomp
// Quick Switch
// Racing
// Radical
// Rebuild Chile
// Renju
// Rise Above
// Risky Road
// Roguelike
// Roly Poly
// Run Around
// Rush Hour
// SameGame
// SamePhysics
// Save the Totem
// Security
// Serious Scramblers
// Shrink it
// Sling
// Slingy
// Snowflakes
// Sokoban
// Space Checkers
// Space is Key
// Spellfall
// Spinny Gun
// Splitter
// Spring Ninja
// Sproing
// Stabilize!
// Stack
// Stick Hero
// String Avoider
// Stringy
// Sudoku
// Super Mario Bros
// Surfingers
// Survival Horror
// Talesworth Adventure
// Tetris
// The Impossible Line
// The Moops - Combos of Joy
// The Next Arrow
// Threes
// Tic Tac Toe
// Timberman
// Tiny Wings
// Tipsy Tower
// Toony
// Totem Destroyer
// Tower Defense
// Trick Shot
// Tunnelball
// Turn
// Turnellio
// TwinSpin
// vvvvvv
// Warp Shift
// Way of an Idea
// Whack a Creep
// Wheel of Fortune
// Where's my Water
// Wish Upon a Star
// Word Game
// Wordle
// Worms
// Yanga
// Yeah Bunny
// Zhed
// zNumbers