Forum Moderators: martinibuster

Message Too Old, No Replies

Responsive ad size

Vertical height seems wrong

         

farmboy

11:33 pm on Apr 2, 2015 (gmt 0)

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



I understood a responsive ad would fill the space provided. I've noticed that when I put in a responsive ad, the ad doesn't properly fill the space provided. Sometime I end up with a few words or a partial ad which may encourage visitors to see the words and click on this partial ad out to see what they find. That seems to be at odds with what I know about AdSense policy ?

Any thoughts?

FarmBoy

MrSavage

5:21 pm on Apr 27, 2015 (gmt 0)

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



I've been doing some overhauling. This has been interesting reading. To me though, it's not complicated, but it is requiring some manual editing. That is not the same as copying adsense code and pasting. I was considering looking at responsive adsense, but this didn't fill me with confidence. The 300 size is going to work on mobile, as is, or am I wrong about that?

webcentric

10:35 pm on Apr 27, 2015 (gmt 0)

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



The 300 size is going to work on mobile, as is, or am I wrong about that?


Probably depends on what other padding, margins, gutters and borders are around it. I love responsive ads, don't find them complicated and on the other hand, they provide a great deal of flexibility. That's just the last 2 cents I earned from Adsense so your mileage may vary.

farmboy

6:44 pm on Jun 30, 2015 (gmt 0)

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



Has anyone found responsive ads of various sizes? For example, if I put responsive in a 150 x 600 space, will it fill that space with an ad(s)?

FarmBoy

Joseph_T

1:48 am on Aug 20, 2015 (gmt 0)

10+ Year Member



Hey Guys, new here and would appreciate your help.

I read this thread and thought the answer seemed simple enough. Can anyone tell me why the following code isn't working for me? It is still showing the 728x90 ad size on my laptop/desktop screen even though I am trying to get it to show up ideally as a 336x280. But I can't seem to get any smaller size to work.

<style>
.ResponsiveRectangle { width: 300px; height: 250px; }
@media(min-width: 500px) { .ResponsiveRectangle { width: 300px; height: 250px; } }
@media(min-width: 768px) { .ResponsiveRectangle { width: 468px; height: 60px; } }
</style>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- ResponsiveRectangle -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-xxxxxxxxxxx"
data-ad-slot="xxxxxxxxxx"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>

robzach

1:56 am on Aug 20, 2015 (gmt 0)

10+ Year Member



Can anyone tell me why the following code isn't working for me? It is still showing the 728x90 ad size on my laptop/desktop screen even though I am trying to get it to show up ideally as a 336x280.


Same here, ended up with fixed rectangle ads.

No5needinput

11:30 am on Aug 20, 2015 (gmt 0)

10+ Year Member Top Contributors Of The Month



You're using the wrong code with fixed responsive - try this:

<style>
.ResponsiveRectangle { width: 300px; height: 250px; }
@media(min-width: 500px) { .ResponsiveRectangle { width: 300px; height: 250px; } }
@media(min-width: 768px) { .ResponsiveRectangle { width: 468px; height: 60px; } }
</style>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- ResponsiveRectangle -->
<ins class="adsbygoogle ResponsiveRectangle"
style="display:inline-block"
data-ad-client="ca-pub-xxxxxxxxxxx"
data-ad-slot="xxxxxxxxxx"</ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>

robzach

11:45 am on Aug 20, 2015 (gmt 0)

10+ Year Member



You're using the wrong code with fixed responsive - try this:

So there's no need data-ad-format ?

No5needinput

12:20 pm on Aug 20, 2015 (gmt 0)

10+ Year Member Top Contributors Of The Month



Yes Remove data-ad-format

Replace display:block with display:inline-block

add your css class to like this <ins class="adsbygoogle ResponsiveRectangle"

Google example page

Go to heading : Specify an exact size per screen width

[support.google.com...]

Joseph_T

4:53 pm on Aug 20, 2015 (gmt 0)

10+ Year Member



Thank you No5,

I really appreciate it. I owe you a beer!

No5needinput

1:07 am on Aug 21, 2015 (gmt 0)

10+ Year Member Top Contributors Of The Month



Glad to help - Hope it worked out for you - Just drank the beer you gave me - tasted good - cheers!
This 40 message thread spans 2 pages: 40