El tema de que no nos guste es esa tontería, es on-line, y aunque juran y perjuran que no guardan ningún tipo de información enviada, en Eurodipity no nos terminamos de fiar.
De todas formas si te gusta el invento te lo puedes montar en tu propio sitio web si tienes algunos conocimientos de programación web. Visual AdSense utiliza Google Chart, por lo que lo único que tenemos que hacer es descargarnos la API y pasarle los parámetros correctos. Aquí tienes un ejemplo del uso en PHP:
<?
// Here's an array containing some data to plot
$test_data=array(0.5,6,12,17,2,0.3,9);
// Here's where we call the chart, and return the encoded chart data
echo "<img src=http://chart.apis.google.com/chart?chtt=".urlencode("It's an example!")."&cht=lc&chs=450x125&chd=".chart_data($test_data).">";
// And here's the function
function chart_data($values) {
// Port of JavaScript from http://code.google.com/apis/chart/
// http://james.cridland.net/code
// First, find the maximum value from the values given
$maxValue = max($values);
// A list of encoding characters to help later, as per Google's example
$simpleEncoding = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
$chartData = "s:";
for ($i = 0; $i < count($values); $i++) {
$currentValue = $values[$i];
if ($currentValue > -1) {
$chartData.=substr($simpleEncoding,61*($currentValue/$maxValue),1);
}
else {
$chartData.='_';
}
}
// Return the chart data - and let the Y axis to show the maximum value
return $chartData."&chxt=y&chxl=0:|0|".$maxValue;
}
?>
Aunque también puedes obtener unos códigos que te pueden ser de gran ayuda en: http://gchartphp.googlecode.com/svn/trunk/, o estos otros: http://www.malaiac.com/GphpChart/
Ahora nos podemos montar nuestro propio VisualAdSense y así no tendremos que enviar ningún tipo de información privada a nadie. Eurodipity espera que te haya gustado este pequeño consejo.

0 comentarios:
Publicar un comentario en la entrada