# Screen jumps with AdSense responsive ads

**URL:** https://meta.discourse.org/t/screen-jumps-with-adsense-responsive-ads/140407
**Category:** Support
**Tags:** advertising
**Created:** [February 2, 2020, 3:21pm UTC](https://meta.discourse.org/t/screen-jumps-with-adsense-responsive-ads/140407 "2020-02-02T15:21:29Z")
**Posts on this page:** 1
**Showing post:** 8

<div class="post-metadata">

### Author: ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)
#### Post date: [February 4, 2020, 9:09pm UTC](https://meta.discourse.org/t/screen-jumps-with-adsense-responsive-ads/140407/8 "2020-02-04T21:09:06Z")

</div>

I’ll try to summarize what’s happening here… 😖

I posted about this in another topic here, so please read:

> [@AdSense Responsive Ads](https://meta.discourse.org/t/adsense-responsive-ads/63991/29):
>
> I don’t know what you’re proposing, but I found [this article](https://support.google.com/adsense/answer/9467650) that seems to say that responsive ads can ignore their containers now. …responsive ad units can now resize the HTML parent container (e.g. \<div\> ) that they’re within. This allows them to automatically adapt to all the different ad sizes on publishers’ pages. Note that for responsive ad units to work properly, they must not be placed inside a container with a fixed or limited height. Cool. frowning If you want to limit the hei…

Digging deeper, I tried using CSS to add dimensions to the container where responsive ads should be rendered in between ad posts. One example:

```css
.adsense-post-bottom.adsense-responsive {
  height: 100px; // no taller than this pretty please
}

```

But… this happens:

 ![2020-02-04_16-03](https://global.discourse-cdn.com/meta/original/3X/f/8/f8192b39a554ddd053da12f2ecd4a504b1874d5f.png)

I can’t find anything in the ad plugin or in core discourse that is adding these inline !IMPORTANT styles, so it looks like the adsense js has chosen the nuclear option and really wants to impose arbitrary heights on the container. So auto !important everything!

So it looks like AdSense has made it impossible. Options now are:

1. Remove “responsive” as a size option from the AdSense plugin (fallback to 728x90 desktop, 300x250 mobile for those who are using the responsive size currently).
2. Remove “responsive” only for between-posts placements (even though the jumping happens in all placements).
3. Write a topic here on meta about the problem, allow people to keep using “responsive”, and link to it in the description of all AdSense size settings.
4. The “auto !important” is coming from the ad plugin or core discourse and I can’t find it?

EDIT:

Maybe I understand this suggestion now:

> [@AdSense Responsive Ads](https://meta.discourse.org/t/adsense-responsive-ads/63991/34):
>
> add max size parameters to the Discourse settings UI, instead of the current selection menu where you have a handful of fixed sizes available.

So you’d need to be able to select “responsive” and then set the max width and max height in the plugin settings.

Closing this topic and will continue in this one:

> [@AdSense Responsive Ads](https://meta.discourse.org/t/adsense-responsive-ads/63991/39):
>
> @ljpp I implemented what you suggested, and it simply doesn’t work. Not even a little bit. [I followed this article to try to implement something like the example.](https://support.google.com/adsense/answer/9467650) See this result, where I’ve included some debugging to show what the ins element’s inline-style attribute contains when the adplugin renders it: Here are my settings: Notice the final result after AdSense has finished its work has a fixed height of 280px, replacing the 90px that the initial i…

---

_[View the full topic](https://meta.discourse.org/t/screen-jumps-with-adsense-responsive-ads/140407)._
