In a support thread about the Discourse DFP plugin, chrismalone reports an issue where mobile 320x50 leaderboard ads served via DFP are rendered in a 290px-wide container, cutting off part of the ad. While backfill (AdSense) ads display correctly, custom-artwork DFP ads are affected, despite the artwork being the correct size. As a temporary fix, chrismalone applied custom CSS, but notes this is not sustainable if ad names change. neil tests with a “mobile topic list top” ad and sees it render correctly at 320px, suggesting the issue may be specific to DFP’s handling of custom artwork. neil asks whether the plugin’s containers (e.g., div.google-dfp-label, div-gpt-ad-topic-list-top) are correctly sized, since the plugin itself doesn’t control ad rendering — that’s handled by DFP. chrismalone agrees to investigate the container dimensions. The site in question is https://mineralrightsforum.com, and the plugin in use is https://github.com/discourse/discourse-adplugin. The discussion remains open as chrismalone prepares to verify the div sizes to isolate whether the issue lies with DFP’s output or the plugin’s container styling.
I hope this is the right place to ask about a problem with a plugin. If not, please tell me.
For some reason, when serving MOBILE 320x50 leaderboards, the container is being set to 290px wide. Which, of course, cuts off part of the ad.
It is applying it using a very specific ID ( #google_ads_iframe_/6933594/TestMRF_320_ROS_0__container__). Obviously, I can force it to be correct by declaring a custom css line for the correct width. I have done this as a stop gap. But that’s only good until the ad name changes.
Is there a place I can correct this globally? Thanks very much.
Yeah, backfill (Adsense) ads are okay. It’s DFP ads that are the problem when there is custom artwork. It renders the container as 290 wide and cuts off the ad.
Hmm that’s very odd. The plugin isn’t aware of what type of ad is rendered. That’s entirely up to DFP. Are the plugin’s div’s the correct size? div.google-dfp-label, div-gpt-ad-topic-list-top.