Noticia aleatoria: Pack de iconos de WeFunction

Si te ha gustado este post, no olvides suscribirte al Feed RSS de Geek the Planet, ya sea vía RSS o vía e-Mail y recibe diariamente nuestras actualizaciones. También ya nos puedes seguir en Twitter.

How To: Cambiar la fuente de google adsense

La semana pasada me encontraba buscando cual era la tipografía que utiliza google adsense para mostrar sus anuncios, después de mucho rato de buscar la encontré, pero en el camino también encontré este experimento, uno bastante peligroso.

No se si en algún momento se habrán topado con algunos anuncios de adsense que no lucen como los normales, desgraciadamente no todos tenemos la posibilidad de poner anuncios de adsense a medida, sólo las cuentas premium tienen esa posibilidad, la de personalizar a gusto propio los anuncios, cambiandole los colores, el tamaño a la letra y la tipográfia.

Este experimento es algo viejo y funciona con los anuncios viejos de adsense, pero de una vez les advierto que deben poner cuidado si lo van a hacer, podrian quedar baneados de por vida de google adsense.

  1. Coloque sus anuncios de google adsense: Estos anuncios son generados por google adsense
    <script language="JavaScript">
    <!--
      // This script sets the attributes for requesting ads.
      google_ad_client = "pub-xxxxxxxxxxxxxxxx";
      google_min_num_ads = 4;
      google_max_num_ads = 6;
      google_feedback = "on";
      google_ad_output = "js";
      google_ad_channel ="6632411210";
      google_ad_type  = "text_image";
      google_image_size = "300x250";
      google_encoding = "utf8";
    -->
    </script>
    <script language="JavaScript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
  2. Defina la siguiente variable en javascript: Definir la variable isa en la parte superior de su página web:
    var sA = ;
  3. Agregue el siguiente método JavaScript: Este método muestra los resultados en el anuncio. Debe ser definido antes que script que llama a show_ads.js para garantizar que se define cuando show_ads.js hace el call-back.
    function google_ad_request_done(google_ads) {
    
        // Proceed only if we have ads to display!
        if (google_ads.length < 1 )
          return;
    
        // Display ads in a table
        sA += <table width="300" cellspacing="1" cellpadding="0" border="0" bgcolor="#ffffff">;
    
    	// Print "Ads By Google" -- include link to Google feedback page if available
        sA += <tr><td align="right"> +
          <div style="text-align:left;font-size:12px">;
    
        if (google_info.feedback_url) {
          sA += <a href=" + google_info.feedback_url + "><font style="font-size:12px" face="Arial" color="#000000">Ads by Google</font></a> &nbsp;  &nbsp; ;
        } else {
          sA += Ads by Google;
        }
    
        sA += </div><font style="font-size:10px"><br></td></tr>;
    
    	var TopRand=Math.floor(Math.random() * 2);
    
    	    // For text ads, display each ad in turn.
    	    // In this example, each ad goes in a new row in the table.
    	    if (google_ads[0].type == 	ext) {
    	      for(i = 0; i < google_ads.length; ++i) {
    
    	var first_line=google_ads[i].line2.split(" ");
    
    	var new_f_l=;
    		for(l = 2; l < first_line.length; ++l) {
    		new_f_l += " "+first_line[l];
    		}
    
    	if (i < 4 ){
    
    	if(TopRand <1){
    
    	 sA += <tr><td bgcolor="#ffffff" id="taw1" class="ch" width="" height="" align="left" valign="top" onFocus="ss(go to + google_ads[i].visible_url +,aw1)" onMouseOver="ss(go to + google_ads[i].visible_url +,aw1)"  onMouseOut="cs()" onClick="javascript:top.location.href= + google_ads[i].url + "><div style="overflow:hidden; width:580px; padding-left:2px"> +
    	         <font style="line-height:16px;font-size:16px;font-weight:bold;" face="arial,sans-serif" color="#000088"><a id="aw0" onclick="javascript:top.location.href= + google_ads[i].url + " onmouseover="window.status=go to  + google_ads[i].visible_url + " onmouseout="window.status="  style="text-decoration:none"> +
    	         <b><font style="font-family:Arial,sans-serif;text-decoration:none;border-bottom:1px #009999 solid; color:#009999;font-size:18px;font-weight:bold;"> + google_ads[i].line1 + </b></a></font></font><font style="line-height:3px;font-size:3px"><br><br></font> +
    	         <font style="font-size: 90%;text-decoration: none;color: #000000;font-size:small;font-family:Verdana,Arial;" color="#000000">+<b>+first_line[0] +   + first_line[1]+</b>  + new_f_l + &nbsp; + google_ads[i].line3 + <br></font> +
    	          <font style="line-height:14px;font-size:12px" face="Verdana,Arial,sans-serif" color="#999999"> + google_ads[i].visible_url +
    	         </font></div><font style="font-size:10px"><br></div></td></tr>;
    
    	}else{
    	sA += <tr><td bgcolor="#ffffff" id="taw1" class="ch" width="" height="" align="left" valign="top" onFocus="ss(go to + google_ads[i].visible_url +,aw1)" onMouseOver="ss(go to + google_ads[i].visible_url +,aw1)"  onMouseOut="cs()" onClick="javascript:top.location.href= + google_ads[i].url + "><div style="overflow:hidden; width:580px; padding-left:2px"> +
    	         <font style="line-height:16px;font-size:16px;font-weight:bold;" face="arial,sans-serif" color="#000088"><a id="aw0" onclick="javascript:top.location.href= + google_ads[i].url + " onmouseover="window.status=go to  + google_ads[i].visible_url + " onmouseout="window.status="  style="text-decoration:none"> +
    	         <b><font style="font-family:Arial,sans-serif;text-decoration:none;border-bottom:1px #4c7373 solid; color:#4c7373;font-size:18px;font-weight:bold;"> + google_ads[i].line1 + </b></a></font></font><font style="line-height:3px;font-size:3px"><br><br></font> +
    	         <font style="font-size: 90%;text-decoration: none;color: #000000;font-size:small;font-family:Verdana,Arial;" color="#000000">+<b>+first_line[0] +</b>  + new_f_l + &nbsp; + google_ads[i].line3 + <br></font> +
    	          <font style="line-height:14px;font-size:12px" face="Verdana,Arial,sans-serif" color="#4c7373"> + google_ads[i].visible_url +
    	         </font></div><font style="font-size:10px"><br></div></td></tr>;
    
    	}
    
    }
          }
        }
    
        // For an image ad, display the image; there will be only one .
        if (google_ads[0].type == image) {
          sA += <tr><td align="center"> +
            <a href=" + google_ads[0].url + "style="text-decoration: none"> +
            <img src=" + google_ads[0].image_url +
            " border="0"></a></td></tr>;
        }
    
        // Finish up anything that needs finishing up
    
        sA += </table>;
    
        document.write(sA);
        return;
      }
  4. El resultado seria el siguiente:

Como les advertí anteriormente, tienen que tener mucho cuidado cuando vayan a hacer este experimento, podrian ser baneados por google adsense.

Visto en: Change Google Adsense Fonts …

, ,

11 Comentarios

  1. Excelente hack!

    Gracias por compartirlo!

    Saludos…

    ↵ Responder
  2. No creo que lo llegue a probar, con lo poco que tengo in mi cuenta de adsense, no me gustaria que me lo quitaran :S
    Ademas, tampoco es que la fuente sea tan fea como para cambiarla xD

    ↵ Responder
  3. chevere voy a modificarlo un poco para mi acomodo! jejejeje

    ↵ Responder
  4. En la política de Google, prohíben la modificación de su código, muy bueno para mejorar el diseño de tu blog pero corres un gran riesgo que te quiten tu cuenta :(

    ↵ Responder
  5. @illi.Pro: Si, está prohibido, es un experimento a riesgo si decides poner el anuncio modificado en tu sitio, pero para hacerlo en local no creo que hayan problemas :P

    ↵ Responder
  6. Hola,

    me parece interesantísimo. He visto algunos sitios que lo están practicando. Es posible que sea una cuenta premium, si es que existe eso? alt1040, por poner un ejemplo, tira de ese tipo de anuncios.

    Un saludo.

    ↵ Responder
  7. excelente informacion, no trataria de hacer esto ya que es muy peligroso, un saludo

    ↵ Responder

Trackbacks/Pingbacks

Comentar