wesley tanaka

Responsive AdSense Leaderboard ad unit for Twitter Bootstrap 2.3.2

‹ Lending Club Experiment | Running a SQLite database transaction in Android ›
()

Twitter Bootstrap 2.3.2 sets its media query responsive layout breaks at 768px, 980px, (and 1200px), which are suitable for including a Mobile Banner (320 x 50), Leaderboard (728 x 90), or a  Large Leaderboard (970 x 90). It's possible to do this with the new beta Responsive ad unit AdSense ad size.

<style>
.ad-leaderboard1 {width:320px;height:50px}

@media(min-width: 768px) {.ad-leaderboard1{width:728px;height:90px}}
@media(min-width: 980px) {.ad-leaderboard1{width:970px;height:90px}}
</style>
<script async src="http://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle ad-leaderboard1"
 style="display:inline-block"
 data-ad-client="ca-pub-1752572177309423"
 data-ad-slot="9607742046"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>

Syndicate content
by Wesley Tanaka