Computer/etc

블로그 사이드바에 adsense 붙이기

Gu Youn 2008. 2. 4. 13:59

1. adsense 홈페이지에서 광고 코드를 복사 한다.

<script type="text/javascript"><!--
google_ad_client = "";
/* 200x200, 작성됨 08. 2. 3 */
google_ad_slot = "";
google_ad_width = 200;
google_ad_height = 200;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>


2. 스킨의 html 편집메뉴에서 아래 내용을 <s_sidebar> ~ </s_sidebar> 사이에 적당한 곳에 붙여넣는다.
google adsense는 모듈이름으로 마음대로 수정해도 된다.

<s_sidebar_element>
<!-- google adsense -->
<div id="adsense">

<script type="text/javascript"><!--
google_ad_client = "";
/* 200x200, 작성됨 08. 2. 3 */
google_ad_slot = "";
google_ad_width = 200;
google_ad_height = 200;
//-->
</script>
<script type="text/javascript"
src="
http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

</div>
</s_sidebar_element>


3. 화면 아래에 있는 저장 버튼을 누른다.

4. 사이트바 설정 메뉴에 가면 google adsense이름을 갖는 모듈이 추가되어 있다. 그것을 적당한 곳에 위치시키면 끝...