# 官方广告插件中的 AdButler

**URL:** <https://meta.discourse.org/t/adbutler-in-the-official-ad-plugin/128050>\
**Category:** Support\
**Tags:** advertising\
**Created:** [2019年九月3日 18:56 UTC](https://meta.discourse.org/t/adbutler-in-the-official-ad-plugin/128050 "2019-09-03T18:56:32Z")\
**Posts on this page:** 10\
**Page:** 1

<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:** [2019年九月3日 18:56 UTC](https://meta.discourse.org/t/adbutler-in-the-official-ad-plugin/128050/1 "2019-09-03T18:56:32Z")

</div>

官方广告插件已新增广告服务器选项。感谢 @michaeld 的贡献！此前，Google Ad Manager 是唯一受支持的广告_服务器_（与广告_网络_不同），现在有了替代方案，这很好。

该插件支持标准区域，因此您在发布商后台创建新区域时，请选择“标准”。文本区域及其他类型将无法正常工作。

 ![adbutler-2019-09-16_15-22](https://global.discourse-cdn.com/meta/original/3X/b/3/b3d5528f1d7229da4ae5f5330b3086ae9321ab1a.png)

在 管理 \> 设置 \> AdButler 中配置广告。当您查看某个区域时，可在浏览器地址栏中找到您的发布商 ID 和区域 ID。

 ![adbutler-2019-09-16_15-25](https://global.discourse-cdn.com/meta/original/3X/4/c/4cdc1f734521d08b43db7ab2af1a779e974b9507.png)

默认情况下，广告尺寸假定为 728 x 90，或在移动视图中为 320 x 50。  
若要使用不同尺寸的广告，请在您网站的主题中通过 CSS 进行自定义。请覆盖以下 CSS 规则：

```css
.adbutler-ad {
  width: 728px;
  height: 90px;
}

.adbutler-mobile-ad {
  width: 320px;
  height: 50px;
}

```

---

<div class="post-metadata">

**Author:** ![michaeld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/michaeld/32/1594_2.png) [@michaeld](https://meta.discourse.org/u/michaeld)\
**Post date:** [2019年九月3日 20:10 UTC](https://meta.discourse.org/t/adbutler-in-the-official-ad-plugin/128050/2 "2019-09-03T20:10:36Z")

</div>

我明天会花些时间处理你提出的更改。不过，我们的一位客户已经运行了一段时间，并没有遇到任何问题。我能否看看你的设置，了解一下具体情况？

> [@neil](#):
>
> 我想提供一个替代 DFP 的广告服务器

我们之前曾实施过 [Revive](https://www.revive-adserver.com/)，但当时是作为独立插件开发的，目前已不再维护。如果有人有预算，我们可以重新启用代码并进行集成。

---

<div class="post-metadata">

**Author:** ![Rob\_Janes](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rob_janes/32/155393_2.png) [@Rob\_Janes](https://meta.discourse.org/u/Rob_Janes)\
**Post date:** [2019年九月6日 05:31 UTC](https://meta.discourse.org/t/adbutler-in-the-official-ad-plugin/128050/3 "2019-09-06T05:31:27Z")

</div>

嘿 @neil

我是 AdButler 的 Rob。请给我发邮件或留言，我们很乐意为您免费开通一个用于调试的月度账户！

祝好，

Rob

---

<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:** [2019年九月6日 14:48 UTC](https://meta.discourse.org/t/adbutler-in-the-official-ad-plugin/128050/4 "2019-09-06T14:48:35Z")

</div>

那太好了！我会发消息跟你说的。

---

<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:** [2019年九月16日 19:17 UTC](https://meta.discourse.org/t/adbutler-in-the-official-ad-plugin/128050/5 "2019-09-16T19:17:30Z")

</div>

此 PR 已合并！感谢 @michaeld 为此付出的努力，也感谢 @Rob_Janes 为我们提供测试账户。

我已更新首帖，添加了相关说明。

---

<div class="post-metadata">

**Author:** ![Jeremie\_Leroy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jeremie_leroy/32/84427_2.png) [@Jeremie\_Leroy](https://meta.discourse.org/u/Jeremie_Leroy)\
**Post date:** [2019年九月16日 20:54 UTC](https://meta.discourse.org/t/adbutler-in-the-official-ad-plugin/128050/6 "2019-09-16T20:54:35Z")

</div>

大家好，@michaeld、@Rob_Janes、@neil，

你们做得非常出色，我非常感激。有个小细节想请教一下：在移动端，横幅是否有点靠下？是我的集成问题，还是插件冲突？

 ![image](https://global.discourse-cdn.com/meta/original/3X/1/1/11ef1d57e9ed5283aaabee513ab0a1417fdf0469.png)

---

<div class="post-metadata">

**Author:** ![michaeld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/michaeld/32/1594_2.png) [@michaeld](https://meta.discourse.org/u/michaeld)\
**Post date:** [2019年九月16日 21:20 UTC](https://meta.discourse.org/t/adbutler-in-the-official-ad-plugin/128050/7 "2019-09-16T21:20:44Z")

</div>

看起来您在移动设备上配置了 728x90 的横幅广告。请改用 320x50 的横幅广告。

---

<div class="post-metadata">

**Author:** ![Jeremie\_Leroy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jeremie_leroy/32/84427_2.png) [@Jeremie\_Leroy](https://meta.discourse.org/u/Jeremie_Leroy)\
**Post date:** [2019年九月16日 21:23 UTC](https://meta.discourse.org/t/adbutler-in-the-official-ad-plugin/128050/8 "2019-09-16T21:23:16Z")

</div>

@michaeld 谢谢，我明天会试试。

---

<div class="post-metadata">

**Author:** ![Jeremie\_Leroy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jeremie_leroy/32/84427_2.png) [@Jeremie\_Leroy](https://meta.discourse.org/u/Jeremie_Leroy)\
**Post date:** [2021年二月27日 08:05 UTC](https://meta.discourse.org/t/adbutler-in-the-official-ad-plugin/128050/9 "2021-02-27T08:05:50Z")

</div>

嗨 @neil，

希望你一切顺利。AdBundler 广告不再显示了，我截取了一些潜在错误的截图。这个问题通常出现在 [francais-a-londres.org](http://francais-a-londres.org) 上，这些截图能说明问题吗？

 ![Screenshot 2021-02-27 at 08.02.07](https://global.discourse-cdn.com/meta/original/3X/f/6/f6837f6f7d40110abc0e1f16f871e4c828757c10.png) ![Screenshot 2021-02-27 at 08.02.42](https://global.discourse-cdn.com/meta/original/3X/8/d/8d0832fa2f043a7616a30932bbe0aaa25f4cab19.png)

---

<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:** [2021年三月1日 15:52 UTC](https://meta.discourse.org/t/adbutler-in-the-official-ad-plugin/128050/10 "2021-03-01T15:52:57Z")

</div>

是的，我看到那个网站上有广告。我在 Linux Mint 20.1 上使用 Chrome 浏览器。

 ![2021-03-01_10-51](https://global.discourse-cdn.com/meta/original/3X/6/4/643dc16242fe9e1dcb4ba9794478c39e0f1c1c13.png)
