Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
/ ./app/views/ads/hoge_ad.slim
/ scriptのasyncを効かせるために、{ } で囲む必要がある。
script{ async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js" }
/ ad-name
ins.adsbygoogle
style="display:inline-block;width:336px;height:280px"
data-ad-client="hoge"
data-ad-slot="huga"
/ script実行はjavascript:を使う
javascript:
(adsbygoogle = window.adsbygoogle || []).push({})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment