Most free versions of games have ads that run along the edges of the screen. Basically, you charge companies to place their ads here. The more popular the game, the more you can charge for an ad placement.