Skip to content

Instantly share code, notes, and snippets.

@bjnhur
Last active March 26, 2020 07:28
Show Gist options
  • Select an option

  • Save bjnhur/b4f36e140c8ebdaa969ed60513b4f739 to your computer and use it in GitHub Desktop.

Select an option

Save bjnhur/b4f36e140c8ebdaa969ed60513b4f739 to your computer and use it in GitHub Desktop.
<html>
<head>
// Google Adsense 모듈을 위한 라이브러리 코드 추가하기
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
</head>
<body>
...
// 광고를 가운데 배치하기 위한 div1
<div style="margin: 10px auto 10px;text-align: center">
<ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-xxxxxxxxxxxxxxxx" data-ad-slot="xxxxxxxxxx" data-ad-format="auto" data-full-width-responsive="true"></ins>
<script>(adsbygoogle = window.adsbygoogle || []).push({});</script>
</div>
...
// 광고를 가운데 배치하기 위한 div2
<div style="margin: 10px auto 10px;text-align: center">
<ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-xxxxxxxxxxxxxxxx" data-ad-slot="xxxxxxxxxx" data-ad-format="auto" data-full-width-responsive="true"></ins>
<script>(adsbygoogle = window.adsbygoogle || []).push({});</script>
</div>
...
// 광고를 가운데 배치하기 위한 div3
<div style="margin: 10px auto 10px;text-align: center">
<ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-xxxxxxxxxxxxxxxx" data-ad-slot="xxxxxxxxxx" data-ad-format="auto" data-full-width-responsive="true"></ins>
<script>(adsbygoogle = window.adsbygoogle || []).push({});</script>
</div>
...
</body>
</html>
하나의 gist 에 두개 이사의 파일을 등록할 수 있구나..왜 따로 다 했지
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment