google ADsense设置代码 占个座位先
13 九 2007
都说可以通过google adsense挣钱,不知道真假,估计与网站的浏览量或流量有关系吧,至少我目前还达不到这种规模,不过还是可以先装上用用,也方便自己找东西吗?贴子设成隐藏的,给自己留个备用参考,也省得别人说我给自己做广告。
1、google adsense 搜索模块(AdSense for Search)
在页面的适当位置放置下面的代码即可实现google搜索功能.
[code]
<!-- Search Google -->
<form method="get" action="http://www.google.com/custom" target="google_window">
<table >
<tr><td nowrap="nowrap" valign="top" align="left" height="32">
<input type="text" name="q" size="15" maxlength="255" value="www.sale925.cn" ></input>
<input type="submit" name="sa" value="Google" class="button" ></input>
<input type="hidden" name="client" value="pub-9928792648942112"></input>
<input type="hidden" name="forid" value="1"></input>
<input type="hidden" name="channel" value="1752202669"></input>
<input type="hidden" name="ie" value="GB2312"></input>
<input type="hidden" name="oe" value="GB2312"></input>
<input type="hidden" name="cof" ></input>
<input type="hidden" name="hl" value="zh-CN"></input>
</td></tr></table>
</form>
<!-- Search Google -->
[/code]
2、google adsense的页面广告功能( AdSense for Content)
在你想加入广告的页面位置处放置下面的代码即可实现google广告功能.本广告的显示大小为468*60的格式。
[code]<script type="text/javascript"><!--
google_ad_client = "pub-9928792648942112";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "image";
google_ad_channel = "";
google_ui_features = "rc:10";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
[/code]