Github 블로그에 에드센스 광고 넣기
😀 에드센스 사이트 추가 하기
<script data-ad-client="ca-pub-3025305005440839" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
에드센스 홈페이지에서 신청을 하면 위와 같은 스크립트 코드를 제공해줍니다. 해당 스크립트를 복사해서 내 github blog에 뿌려줄 것 입니다.
😀 하단 footer 영역에 추가
_layout\default.html 에 추가 합니다.
<section class="page__content" itemprop="text">
</section>
<script data-ad-client="ca-pub-3025305005440839" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<footer class="page__meta">
</footer>
😀 블로그 하단에 추가
_layout\default.html 에 작성 (위에서 이미 함)
_include\footer\custom.html 에 작성
<!-- start custom footer snippets -->
<script data-ad-client="ca-pub-3025305005440839" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- end custom footer snippets -->
😀 각 포스트 하단에 추가
_layout\single.html 에 작성
<script data-ad-client="ca-pub-3025305005440839" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<section class="page__content">
</section>
<script data-ad-client="ca-pub-3025305005440839" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
감사합니다.
댓글남기기