Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

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

share|improve this question
add comment

2 Answers

up vote 9 down vote accepted

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
share|improve this answer
    
+1 for a good alternate solution. –  Nate Sep 21 '10 at 6:29
    
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 :(. –  Maged Sep 21 '10 at 18:07
1  
Actually, Google AdSense has specific code for embedding in flash, and other games: google.com/ads/games/publishers.html –  DrDeth Sep 21 '10 at 22:26
3  
@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" –  davr Sep 22 '10 at 0:10
1  
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 –  DrDeth Sep 22 '10 at 21:52
show 3 more comments

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

share|improve this answer
1  
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 ;) –  Lucifer Sep 23 '10 at 9:32
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.