var google_adnum = 0;

function google_ad_request_done(google_ads) {
	var s = '';
	var i=0;

	if (google_ads.length == 0) {
		return;
	}

	if(google_ads.length == 1){
		s = '<div class="publiAdsense"><h3><a target="_blank" href=\"' + google_info.feedback_url + '\">Anuncios Google</a></h3>';
		s += '<p style="display:none;">Anuncio único</p>';
		s += '<ul class="unico">';
		s += '<li><h4><a target="_blank" href="' +
			google_ads[i].url + '">' +
			google_ads[i].line1 + '</a></h4><p>' +
			google_ads[i].line2 + ' ' +
			google_ads[i].line3 + '</p><a target="_blank" href="' +
			google_ads[i].url + '" class="link">' +
			google_ads[i].visible_url + '</a></li></ul></div>';

		document.write(s);
		return;
	}

	if (google_ads.length > 1) {
		s = '<div class="publiAdsense"><h3><a target="_blank" href=\"' + google_info.feedback_url + '\">Anuncios Google</a></h3>';
		s += '<p style="display:none;">Entre uno y tres: ' + google_ads.length + '</p>';
		s += '<ul>';
		for(i = 0; i < google_ads.length; ++i) {
			s += '<li><h4><a target="_blank" href="' +
				google_ads[i].url + '">' +
				google_ads[i].line1 + '</a></h4><p>' +
				google_ads[i].line2 + ' ' +
				google_ads[i].line3 + '</p><a target="_blank" href="' +
				google_ads[i].url + '" class="link">' +
				google_ads[i].visible_url + '</a></li>';
		}
		s += '</ul></div>';

		document.write(s);

		if(google_ads[0].bidtype == "CPC") {  /* introduzca este fragmento para cada llamada de anuncio */
			google_adnum = google_adnum + google_ads.length;
		}
		return;
	}
}
google_analytics_domain_name = "publico.es";
google_ad_client = 'ca-pub-5898552818181536';
google_ad_channel = '5503885172';
google_ad_output = 'js';
google_max_num_ads = '3';
google_ad_type = 'text_html';
google_feedback = 'on';
google_adtest = 'off';
google_language = 'es';
google_skip = google_adnum;
