  function google_ad_request_done(google_ads) {
    /*
     * 此函数为必需函数，用于展示
     * JavaScript 请求返回的
     * 广告。您需要修改 document.write
     * 命令，使其写出的 HTML 符合
     * 所需广告布局。
     */
    var s = '';
    var i;
 
    /*
     * 验证存在可以展示的广告。
     */
    if (google_ads.length == 0) {
      return;
    }
 
    /*
     * 如果返回图片或 Flash 广告，则展示该广告。
     * 否则，创建一个包含所有广告的字符串，
     * 然后使用 document.write() 命令写出该字符串。
     */
 
    if (google_ads[0].type == "image") {
      s += '<a href="' + google_ads[0].url +
              '" target="_top" title="go to ' + google_ads[0].visible_url +
              '"><img border="0" src="' + google_ads[0].image_url +
              '"width="' + google_ads[0].image_width +
              '"height="' + google_ads[0].image_height + '"></a>';
 
    } else if (google_ads[0].type == "flash") {
      s += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"' +
              ' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"' +
              ' WIDTH="' + google_ad.image_width +
              '" HEIGHT="' + google_ad.image_height + '">' +
              '<PARAM NAME="movie" VALUE="' + google_ad.image_url + '">' +
              '<PARAM NAME="quality" VALUE="high">' +
              '<PARAM NAME="AllowScriptAccess" VALUE="never">' +
              '<EMBED src="' + google_ad.image_url +
              '" WIDTH="' + google_ad.image_width +
              '" HEIGHT="' + google_ad.image_height + 
              '" TYPE="application/x-shockwave-flash"' + 
              ' AllowScriptAccess="never" ' + 
              ' PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED></OBJECT>';
 
    } else if (google_ads[0].type="text") {
        s += '<div style="text-align:right;font-weight:bold;font-size:12px"><a href="https://adwords.google.com/select/Login?hl=zh_CN">Ads By Google</a></div>';
        if (google_ads.length == 1) {
            /*
             * 合作伙伴应调整文字大小，
             * 使广告能占据大部分广告空间。
             */
            s += '<a href="' + google_ads[0].url + '" ' +
                            'onmouseout="window.status=\'\'" ' +
                            'onmouseover="window.status=\'链接至 ' +
                            google_ads[0].visible_url + '\'; return true;" ' +
                            'style="text-decoration:none">' +
                            '<span style="text-decoration:underline;color:#002299;font-size:16px;line-height:200%">' +
                            '<b>' + google_ads[0].line1 + '</b><br></span>' + 
                            '<span style="color:#000000;font-size:14px;line-height:160%">' +
                            google_ads[0].line2 + '&nbsp;' +
                            google_ads[0].line3 + '<br></span>' +
                            '<span style="color:#000000;font-size:14px">' +
                            google_ads[0].visible_url + '</span></a><br>';
        } else if (google_ads.length > 1) {
            /*
             * 对于文字广告，将每个广告附加到该字符串。
             */
            for(i=0; i < google_ads.length; ++i) {
                s += '<table><tr><td height=6> </td></tr></table><a href="' + google_ads[i].url + '" ' +
                                  'onmouseout="window.status=\'\'" ' +
                                  'onmouseover="window.status=\'链接至 ' +
                                  google_ads[i].visible_url + '\'; return true;" ' +
                                  'style="text-decoration:none">' +
                                  '<span style="text-decoration:underline" style="color:#002299;font-size:14px">' +
                                  '<b>' + google_ads[i].line1 + '</b><br></span>' + 
                                  '<span style="color:#000000;line-height:120%">' +
                                  google_ads[i].line2 + '' +
                                  google_ads[i].line3 + '<br></span>' +
                                  '<span style="color:#002299;line-height:120%">' +
                                  google_ads[i].visible_url + '</span></a><br>';
            }
        }
    }
 
    document.write(s);
    return;
  }
 
     google_ad_client = 'ca-21cn_js'; // 替换为您的 client_id
     google_ad_channel = 'games';
     google_ad_output = 'js';
     google_max_num_ads = '3';
     //google_page_url = 'http://www.21CN.com';
     google_ad_type = 'text';
     //google_image_size = '300x250';
     google_language = 'zh-CN';
     google_encoding = 'gb2312';
     google_safe = 'high';
     google_adtest = 'off';
     google_ad_section = 'default';
