这在 主指南 中有说明。
将 AdButler 广告区域 URL 配置到 Discourse 站点设置
本插件仅支持 AdButler“标准区域”。不支持文本和 VAST 广告。
如果您浏览 AdButler 管理后台中的某个区域,则可以在浏览器地址栏的 URL 中找到发布商 ID(PPPPPP)和区域 ID(ZZZZZZ):
https://admin.adbutler.com/?ID=PPPPPP&p=textadzone.view&zoneID=ZZZZZZ在 管理 > 设置 > AdButler 中配置广告。在“adbutler publisher id”设置中输入发布商 ID,并在相应的区域 ID 设置中输入区域 ID。
默认情况下,广告尺寸默认为 728 x 90,移动端视图为 320 x 50。若要使用不同尺寸的广告,请通过自定义站点主题的 CSS 进行调整。覆盖以下 CSS 代码:
.adbutler-ad { width: 728px; height: 90px; } .adbutler-mobile-ad { width: 320px; height: 50px; }