Pages

Tuesday, April 12, 2011

update old AdSense code

原代碼:

<script type="text/javascript"><!--
google_ad_client = "pub-09194002021xxxxx";
google_ad_width = 125;
google_ad_height = 125;
google_ad_format = "125x125_as";
google_ad_type = "text_image";
//2006-12-27: club, diving, scuba
google_ad_channel = "0642876578+6711664441+02033xxxxx";
google_color_border = "66B5FF";
google_color_bg = "E6E6E6";
google_color_link = "0066CC";
google_color_text = "66B5FF";
google_color_url = "3D81EE";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>


一直無法轉換:

The format of the line for the parameter google_ad_format is incorrect. Line 5: google_ad_format = 125x125_as;

the line in the code is:
google_ad_format = "125x125_as";


修改以下代碼,原:
google_ad_type = "text_image";
成:
google_ad_type = "text";

新產生的代碼:

<script type="text/javascript"><!--
google_ad_client = "ca-pub-09194002021xxxxx";
/* ckc */
google_ad_slot = "26010xxxxx";
google_ad_width = 200;
google_ad_height = 200;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

No comments: