AdSense Responsive Ads

Recently, AdSense did not show ads? Could you advice to fix it?

@bck055 Can you please provide more information.

1 Like

Hello @neil, here is our URL.
Could you advise issue?

@bck055 Did you follow the first post in this topic? See this section:


@neil Once again thank you for this plugin - this single component is a make-it-or-break-it feature for our community that runs without any other funding.

I have been running AdSense banners with the Responsive setting ever since this feature was introduced to the plugin. Recently however the Responsive ads have started misbehaving – I seem to be getting larger ad units that break the intended UX (too much ad content above the fold). I also get ads that are too big for my iPhone SE – they produce a large white space on the screen unless I turn the device landscape.

I had a look at the settings and noticed that ad size is now a multi-select option. I tried searching here but I failed to find information how does this multi-select feature actually work – what ad sizes are shown and when if I choose more than one?

1 Like

If you choose multiple sizes, the ad units will alternate between them evenly. So you could alternate between banner ads and square ads in the same ad slot, for example.

As for the ad height problems you’re seeing, you can try to add height rules to the ad slots like the first post in this topic shows:


I followed your instruction.
The issues are not fix!!!

It’s working for me (Linux, Firefox with content blocking disabled, no ad blocker extension installed). What errors do you see in your web browser’s javascript console?


BTW, I never got the responsive element size control working. Just noticed that Google has made some updates to responsive units in September.

Max heigh/width would be an awesome addition to the plugin and make the fixed size options redundant. Perhaps something to consider for the development roadmap?

1 Like

You can already do this see the (Optional) Controlling Ad Sizes section in the first post of this topic.

1 Like

BTW, I never got the responsive element size control working

But that was not the point. I’ve tried it a number of times, but for some reason it does not work as-is (in our scenario).

The benefit would have been simplifying the Plugin settings view, which is currently quite cluttered.

I don’t know what you’re proposing, but I found this article 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 height of your responsive ads, you’ll need to modify your responsive ad code…

<ins class="adsbygoogle" style="display:inline-block;min-width:400px;max-width:970px;width:100%;height:90px"

So do the same thing as the way it worked before with containers and css, but do it with inline styles instead to let Google “automatically adapt to all the different ad sizes” whatever that means.

BUT their examples show that using CSS should still work: @ljpp see this article:

Are you sure you haven’t tried using CSS to control the max width/height of the responsive units? The two articles contradict each other, so maybe their examples are obsolete.


Getting the word advertisement, but there is no ad.

1 Like

Why do I only get the word advertisement where an ad should be? This is my config

Hi, I’m posting this to try to get some feedback on a recurrent and most annoying issue with ads:

When in mobile, it is frequent that the posts “jump” up or down (lacking a better description) even after everything in the page is loaded, being really really hard to read certain posts due to this involuntary vertical scrolling. The screen doesn’t stay still at the post, it jumps whenever one tries to put it in front again. I say this is because of ads since when they’re not there then the issue goes away. I have everything configured as it should, with responsive ads on discourse corresponding to responsive ad-codes on Adsense.

Does anyone recognize this behavior?
Could it be related to Adsense trying to “decide” the height of the ads the whole time?

1 Like

Replying to my own post, after searching for a while I stumbled across this post where the same behavior is described:

The jittery on mobile seems to be exclusively related to the option to placed ads every nth post. Putting this to zero does in fact stop the problem, but it would be much nicer if the plugin authors could fix the issue instead.


The UI proposal is to add max size parameters to the Discourse settings UI, instead of the current selection menu where you have a handful of fixed sizes available. Would de-clutter the UI, as responsive would be the default, with the possibility to limit the height.

Are you sure you haven’t tried using CSS

I suck at CSS, but to my knowledge it has been tried a number of times. Currently working around the issue by using a fixed size for mobile layout.

Hi guys just to know, i use adsense to advertising my forum with responsive ads and auto ads and all works til yesterday. I update my instance and since that i don’t have any ads on my board ? plugin is broken or ?

I hope someone will succeed to help me :wink:

Check if you have suspect warnings in your browser console. If you do you may need to give those resources your permission in settings.


yes i saw with @blake in DM to not flood your plugin thread mate. we seems to have succeed to fix it.