PHP Classes

Making money with advertising in embedded Google Maps - PHP Forms Class with HTML Generator and JavaScript Validation package blog

Recommend this page to a friend!
  All package blogs All package blogs   PHP Forms Class with HTML Generator and JavaScript Validation PHP Forms Class with HTML Generator and JavaScript Validation   Blog PHP Forms Class with HTML Generator and JavaScript Validation package blog   RSS 1.0 feed RSS 2.0 feed   Blog Making money with adv...  
  Post a comment Post a comment   See comments See comments (4)   Trackbacks (0)  

Author:

Viewers: 2

Last month viewers: 1

Package: PHP Forms Class with HTML Generator and JavaScript Validation

Since a few months ago, you can place advertising in Google Maps and make money from maps embedded in your site pages.

This article explains how to achieve it easily in PHP using the map location plug-in of the Forms Generation and validation package.




Loaded Article
In May Google announced the support for embedding AdSense advertising in Google Maps embedded in publisher sites.

googlegeodevelopers.blogspot.com/20 ...

The advertising that appears is sensitive to either the location of the center of the map and to the site on which the maps are embedded. You can see the advertising changing as you drag the map around the world. Try it in this embedded map of PHP user groups world wide.

phpclasses.org/browse/group/

The map location plug-in class of the Forms Generation and Validation class was enhanced to make it easier showing AdSense advertising in embedded Google Maps just by adding a few lines like these to the definition of the map input.

'AdsManager'=>array(
'Publisher'=>$adsense_publisher,
'MaxAdsOnMap'=>1,
'Channel'=>$adsense_channel
),

The Publisher parameter is the identifier of your AdSense account. The Channel parameter is a custom AdSense channel that you may create to keep track of the performance of this type of advertising. The MaxAdsOnMap parameter is an option to limit the space that will be used to show advertising.

You can view a live example in practice:

meta-language.net/forms-examples.ht ...

Here you can see the example source code:

meta-language.net/forms-examples.ht ...

While the revenue generated by this type of advertising on the maps is not extraordinary, if you are an AdSense publisher of sites that embed Google Maps on their pages, it may help improving your sites revenue.



You need to be a registered user or login to post a comment

Login Immediately with your account on:



Comments:

2. Object required - ggggggg (2009-10-28 08:25)
Error in main.js... - 1 reply
Read the whole comment and replies

1. IE8 - ggggggg (2009-10-28 00:48)
Example dont work in IE8... - 1 reply
Read the whole comment and replies



  Post a comment Post a comment   See comments See comments (4)   Trackbacks (0)  
  All package blogs All package blogs   PHP Forms Class with HTML Generator and JavaScript Validation PHP Forms Class with HTML Generator and JavaScript Validation   Blog PHP Forms Class with HTML Generator and JavaScript Validation package blog   RSS 1.0 feed RSS 2.0 feed   Blog Making money with adv...