# Problem with Discourse DFP plugin

**URL:** https://meta.discourse.org/t/problem-with-discourse-dfp-plugin/89543
**Category:** Support
**Tags:** advertising
**Created:** [June 10, 2018, 10:58am UTC](https://meta.discourse.org/t/problem-with-discourse-dfp-plugin/89543 "2018-06-10T10:58:05Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![chrismalone](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chrismalone/32/506946_2.png) [@chrismalone](https://meta.discourse.org/u/chrismalone)
#### Post date: [June 10, 2018, 10:58am UTC](https://meta.discourse.org/t/problem-with-discourse-dfp-plugin/89543/1 "2018-06-10T10:58:05Z")

</div>

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](https://mineralrightsforum.com) .

This is the plugin we are using:

[https://github.com/discourse/discourse-adplugin](https://github.com/discourse/discourse-adplugin)

( @ked )

---

<div class="post-metadata">

### Author: ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)
#### Post date: [June 11, 2018, 2:06pm UTC](https://meta.discourse.org/t/problem-with-discourse-dfp-plugin/89543/2 "2018-06-11T14:06:24Z")

</div>

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?

 ![Developer_Tools_-http___gtmdiscourse_neillalonde_com_forum_c_analytics_and_Latest_Analytics_topics-_Neil_Tests_The_Things](https://global.discourse-cdn.com/meta/original/3X/b/a/ba9517b631dc05ac061f283bb66944ec3f6fd309.png)

---

<div class="post-metadata">

### Author: ![chrismalone](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chrismalone/32/506946_2.png) [@chrismalone](https://meta.discourse.org/u/chrismalone)
#### Post date: [June 12, 2018, 4:52am UTC](https://meta.discourse.org/t/problem-with-discourse-dfp-plugin/89543/3 "2018-06-12T04:52:12Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![chrismalone](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chrismalone/32/506946_2.png) [@chrismalone](https://meta.discourse.org/u/chrismalone)
#### Post date: [June 12, 2018, 1:40pm UTC](https://meta.discourse.org/t/problem-with-discourse-dfp-plugin/89543/4 "2018-06-12T13:40:53Z")

</div>

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

---

<div class="post-metadata">

### Author: ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)
#### Post date: [June 12, 2018, 1:53pm UTC](https://meta.discourse.org/t/problem-with-discourse-dfp-plugin/89543/5 "2018-06-12T13:53:32Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![chrismalone](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chrismalone/32/506946_2.png) [@chrismalone](https://meta.discourse.org/u/chrismalone)
#### Post date: [June 12, 2018, 3:26pm UTC](https://meta.discourse.org/t/problem-with-discourse-dfp-plugin/89543/6 "2018-06-12T15:26:54Z")

</div>

I’ll check it @neil. Thank you.

---

<div class="post-metadata">

### Author: ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)
#### Post date: [June 22, 2020, 4:06pm UTC](https://meta.discourse.org/t/problem-with-discourse-dfp-plugin/89543/7 "2020-06-22T16:06:40Z")

</div>

3 posts were merged into an existing topic: [Plugin not injecting the dfp code](https://meta.discourse.org/t/plugin-not-injecting-the-dfp-code/155492/2)

---

<div class="post-metadata">

### Author: ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)
#### Post date: [June 22, 2020, 4:09pm UTC](https://meta.discourse.org/t/problem-with-discourse-dfp-plugin/89543/8 "2020-06-22T16:09:55Z")

</div>


