본문 바로가기
IT,WEB

티스토리 메인에 구글 애드센스 광고 다는방법

by 에프링크 2014. 6. 7.

구글 애드센스를 메인에 2개다는 방법

 

티스토리에는 고수들이 많다.

이제 막 시작한 티스토리 사용자로서 고수들의 화려한 기술을 따라 가려니 아직은 힘들다.

 

 

어느 티스토리를 보니 메인에 구글 애드센스가 이쁘게 2개 달려 있었다..

어찌달지,.......... 어떻게 달지, 혼자서는 아무리 생각해 보아도 답이없다.

 

그러다 고수의 홈페이지를 소스보기 모드에서 살펴보고서야 정답을 찾았다.

 

관리자모드에서 구글 애드센스를 나타내고 싶은곳에 빈화면을 만든다.

 

 

 

아이템에서 아무거나 하나 선택하고 바로 디자인을 클릭한다.

그리고 여기에 있는 내용을 모두 미련없이 지워 버리고 아래의 코드를 입력한다.

 

<table cellpadding="0" cellspacing="0" table width="700">
<tr>
<td width="350">
<center>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- 에프링크 본문 왼쪽 -->
<ins class="adsbygoogle"
     style="display:inline-block;width:336px;height:280px"
     data-ad-client="ca-pub-2267434402681464"
     data-ad-slot="1162791099"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</center>
</td>
<td width="350">
<center>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- 에프링크 본문 오른쪽 -->
<ins class="adsbygoogle"
     style="display:inline-block;width:336px;height:280px"
     data-ad-client="ca-pub-2267434402681464"
     data-ad-slot="5402308810"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</center>
</td>
</tr>
</table>
<br />

 

여기에서 본인의 구글 애드센스 코드로 변경만 하면 끝...

글을 쓰는 이시점에는 아직 본인의 구글 애드센스가 없다.

일단은 남의 코드로 이것저것 테스트를 해보는 중이다.

 

 

다 입력했으면 상단의 적용을 살포시 클릭한다.

 

 

 

 

티스토리로 가보면 메인에 배너2개가 예쁘게 달려 있는것을 확인할 수 있다.