Forum Moderators: martinibuster

Message Too Old, No Replies

Same responsive tag twice on one page?

         

csdude55

12:54 am on Jan 25, 2018 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I have something like this:

// banner 1
<div id="block_1" style="padding: 10px; margin: 10px 0 20px 0; border: 1px solid #E3E3E3; background: #F5F7F9">
<ins class="adsbygoogle"
data-ad-client="ca-pub-xxxx"
data-ad-slot="1234"
data-ad-format="auto"></ins>
<script>(adsbygoogle = window.adsbygoogle || []).push({});</script>
</div>

// local content
<div style="height: 500px">
blah blah blah
</div>

// banner 2
<div id="block_2" style="position: absolute; bottom: 0; padding: 10px; margin: 10px 0 100px 0; border: 1px solid #E3E3E3; background: #F5F7F9">
<ins class="adsbygoogle"
data-ad-client="ca-pub-xxxx"
data-ad-slot="1234"
data-ad-format="auto"></ins>
<script>(adsbygoogle = window.adsbygoogle || []).push({});</script>
</div>


Can I use the same slot# in both locations, or do I need to have 2 separate tags?

I ask because I recently discovered that the banner in block_1 isn't showing, but in block_2 it is. Everything looks fine in the code, so the only thing I can imagine is that maybe it doesn't like the same slot#?

I thought I'd ask before I clutter up my list with another inactive tag...

levo

5:05 am on Jan 25, 2018 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Google says it's OK, but using same ad slot code on a page more than once triggers a bug that fires 'activeview' call for all ad slots when only one of them is visible.