Problem with Discourse DFP plugin


(Chris Malone) #1

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.

It’s https://mineralrightsforum.com .

This is the plugin we are using:

( @ked )


(Neil Lalonde) #2

I’m not see that when I test with a “mobile topic list top” ad. It’s rendered as 320px wide. Which ad placement are you seeing with 290px?


(Chris Malone) #3

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.


(Chris Malone) #4

I should probably add that the image size of the custom artwork we use in DFP is the correct size.


(Neil Lalonde) #5

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.


(Chris Malone) #6

I’ll check it @neil. Thank you.