Increasing DFP ad size on mobile

Agree @DeanMarkTaylor. But if there’s a way that the 320x50 ads can be more legible, I’d like to achieve that. The concept of multiple ad sizes for the same slot is interesting, but it doesn’t resolve the issue of ads that look too small for a certain screen size.

It might make sense for @neil to look into GPT tags, but I think adding an option to use 300x250 ads for the nth ad might achieve the same effect and be easier to implement.

The revenue/performance of 320x50 on Discourse is terrible - near zero. I have proposed the support for larger banner sizes at least a couple of times here. With mobile browsing going up, the webmaster’s revenue will go down, as 320x50 will generate only a fraction of what the desktop banner does.

Support for 320x100 and 320x320 would be a much needed improvement.

Adding options for mobile ad sizes like there are for non-mobile is on my to-do list.

Will try to get it done soon!


Great @neil. If you haven’t already planned it to be this way, can it be a separate setting for top, bottom and the every nth ad?

Yes definitely. It will mirror the non-mobile settings.


Mobile ad sizes have been added for DFP in the discourse-adplugin.

The most popular (and recommended by Google) ad size 320 x 250 is there, along with some others. Let me know if I missed any. There were also some sizes missing for the non-mobile ad units, so I added those.

@charleswalter @BCHK The update is deployed on your sites now so please try them out and let me know your results. When I switched to 320 x 250 it was rendering blank rectangles, but after an hour they began to be populated. It seems to be normal for DFP/Adsense… /shrug


Thx Neil. We work with an ad exchange, so they will be providing us new tags that I can schedule through DFP. Can I suggest adding in 320x100 and 300x600? I know the 300x600 sounds large, but I’m thinking of testing it at the bottom of the topics.


Done! Give them a try. FYI, after changing the ad size setting, it seems to take some time for the ad network to pick it up and start showing ads of the requested size.


Just installed the plugin on one site, it works, and now configuring the second one. Two pointers:

  • 320x100 size does not seem to be getting AdSense backfill ads. I am guessing this is a DFP limitation, as such size seems to be “custom”?
  • How can I get rid of the ADVERTISEMENT text that appears above the banners? It consumes some valuable vertical space, while not adding any value.

Edit: Strange. I am also not getting AdSense backfill for the 320x50, but 320x200 does work. I wonder why is that?

Use CSS to hide it:

.google-dfp-ad-label { display: none; }

That label is a requirement on many sites. AdSense may integrate a notice in their ads, but other ad networks don’t and require sites to add their own labels.

As for ad sizes, that’s entirely up to you. Your ad network settings (ad units, inventory, creatives, etc.) determine which ad sizes you should choose. Don’t choose settings that don’t match any ad inventory you’ve defined otherwise the ad network will probably display a blank rectangle.

1 Like

Thanks for the CSS snippet!

Currently I am using DFP and your plugin to deliver AdSense ads only, with no other networks or privately sold campaigns.

Just noticed that the 320x100 has not been added for AdSense - only DFP. It is also a recommended AdSense banner size

I added more ad sizes for AdSense. Give them a try.


@neil Just want to know your ideas as well for the below post

I don’t understand the question. What is “Native advertising”?

1 Like

Native advertising - Regular topics/post from our own forum used as AD instead of external banner image / content

Google Adsense can be setup to dynamically show topics from the community. Can help with recirculation if that’s what you are going for. They will grab a thumbnail for the topic as well if the topic had an image in it


Thanks for the tip !