Hello, i'm trying to get responsive units to display in the vbulletin mobile style IN VB 4.2.3. Any ideas on how to make this work properly? The ad is active and sometimes it displays but most of the time it doesn't. Google adsense folks tell me that this is because the width isn't defined correctly. I tried to tell it to define to 100% because the mobile style supports tablets, smartphones, and featured phones. As you can guess the widths on each interface vary greatly.
This is the code I'm using in the header template:
Code:
<div class="adsense-header">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Mobile Forum Header (Responsive) -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="MY_ADSENSEPUB_CODE"
data-ad-slot="5779071897"
data-ad-format="rectangle, horizontal"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
And here is the CSS I defined in vbulletin.css.
Code:
.adsense-header{
width: 100%;
}