What I want to do is put Google Ads in my flash game.

The first question is how can I do that?

The second question is the best place to put it; while loading, after finishing the game? alt text


2 Answers 2


Last I checked you cannot embed Google Adsense in a Flash game/app, because Adsense is HTML+JS, which cannot be put inside Flash.

You could hover it over your Flash game...but there are compatibility issues, doesn't work on all OS/Browsers, and may cause UI bugs with your Flash game.

You could try hacking the Adsense code so that it requests the ad data and loads it & displays it inside Flash...but this is against their terms of service.

Your only option with Adsense is to place them on the same page next to your flash game (which isn't an option if you need your game to take up the full page). I suggest looking at Mochi ads, they are specifically designed to be embedded in flash games.

Edit: A user posted a link to Google Adsense for Flash Games...unfortunately they have quite strict requirements, which most people wont meet.

Current Requirements:

  1. Game plays: Minimum 500,000 per day
  2. Game types: Web-based Flash only
  3. Integration: Must be technically capable of SDK integration
  4. Traffic source: Must be 80% US & UK Traffic
  5. Content: Family safe and targeted at users age 13 and up
  6. Distribution: Must be able to report embed destination and have control over where games are distributed
  • \$\begingroup\$ First thanks for your post , there are games like who has the biggest brain put the ads after finishing the game , the image in the main post , i guess they used HTML code maybe in TextField or they used URLRequest , i don't know :(. \$\endgroup\$
    – john
    Sep 21, 2010 at 18:07
  • 1
    \$\begingroup\$ Actually, Google AdSense has specific code for embedding in flash, and other games: google.com/ads/games/publishers.html \$\endgroup\$
    – DrDeth
    Sep 21, 2010 at 22:26
  • 3
    \$\begingroup\$ @DrDeth huh, never heard of that before. Too bad 99% of all web games don't qualify... "Current Requirements: # Game plays: Minimum 500,000 per day # Traffic source: Must be 80% US & UK Traffic # Distribution: Must be able to report embed destination and have control over where games are distributed" \$\endgroup\$
    – davr
    Sep 22, 2010 at 0:10
  • \$\begingroup\$ @DrDeth as Mr.davr said it's impossible to reach these numbers ,are there any Alternatives solutions as Mochi ads ? \$\endgroup\$
    – john
    Sep 22, 2010 at 14:36
  • 1
    \$\begingroup\$ Ahh... sorry about that. I wasn't aware of the requirements - they seem absolutely ridiculous. A quick google search yields quite a few alternatives: google.co.uk/search?hl=en&q=in+game+advertising \$\endgroup\$
    – DrDeth
    Sep 22, 2010 at 21:52

Your best bet is to put google ads on the page next to your game.

  • 1
    \$\begingroup\$ I agree. Also, I think it decreases value of games when there are ads embedded directly into games. UNLESS you have billboard in the game itself and you render Google Ads onto the Billboard ;) \$\endgroup\$
    – Lucifer
    Sep 23, 2010 at 9:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .