Discourse DFP 插件问题

希望这里是咨询插件问题的正确地方。如果不是,请告诉我。

不知何故,在提供 320x50 移动横幅广告时,容器宽度被设置为 290 像素,这显然会截断部分广告内容。

它通过一个非常具体的 ID(#google_ads_iframe_/6933594/TestMRF_320_ROS_0__container__)应用该设置。当然,我可以通过声明一条自定义 CSS 规则来强制设置正确的宽度,目前我已将其作为临时解决方案。但这只是权宜之计,一旦广告名称变更就会失效。

是否有地方可以全局修正此问题?非常感谢。

网站是:https://mineralrightsforum.com

我们使用的插件是:

@ked

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?

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.

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

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.

I’ll check it @neil. Thank you.