Google Adsense for Mobile Website
Google has announced Adsense for mobile. In the adsense products section for the publishers a new section has been added for Mobile Adsense which allowes the publishers to select the Ad format and customize colors. The adsense code for mobile is currently available in the following scripting languges.
- PHP
- CGI/Perl
- JSP
- ASP
and a sample mobile website adsense code for PHP looks as shown below
<?php
$GLOBALS['google']['ad_type']=’text’;
$GLOBALS['google']['channel']=”;
$GLOBALS['google']['client']=’pub-*****************’;
$GLOBALS['google']['format']=’mobile_single’;
$GLOBALS['google']['https']=$_SERVER['HTTPS'];
$GLOBALS['google']['host']=$_SERVER['HTTP_HOST'];
$GLOBALS['google']['ip']=$_SERVER['REMOTE_ADDR'];
$GLOBALS['google']['markup']=’xhtml’;
$GLOBALS['google']['output']=’xhtml’;
$GLOBALS['google']['ref']=$_SERVER['HTTP_REFERER'];
$GLOBALS['google']['url']=$_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
$GLOBALS['google']['useragent']=$_SERVER['HTTP_USER_AGENT'];
require(’http://pagead2.googlesyndication.com/pagead/show_ads.php’);?>
So now all mobile website owners can earn money through Google adsense for mobile.
Comments
Leave a Reply