Discourse Advertising Plugin (Ads)

:discourse2: Summary Discourse Advertising allows the set up of advertisements on Discourse
:open_book: Install Guide This plugin is bundled with Discourse core. There is no need to install the plugin separately.

:warning: AD-BLOCKERS If you are running an ad-blocker in your browser or through a vpn, the contents of your /admin/plugins page may be blanked out. Disabling your adblocker, using an incognito tab, or whitelisting your site should prevent this issue.

Features

This is the officially supported Discourse ad plugin. Install and configure it to start serving ads on your Discourse forum.

The plugin supports the following ad platforms :

Configuration

Setting up House Ads

If you don’t want to use an external ad platform, but want to show your own ads, then House Ads are for you! Define your ads by going to the Admin section of your Discourse forum, and go to the Plugins section. On the left, you should see a link called “House Ads”.

Begin by creating your ads. Give each a short descriptive name and enter the html for each. Style them using a custom theme (Admin > Customize > Themes). Lastly, click the Settings button in the House Ads UI and choose which of your ads to show in each of the ad slots. The ads will start showing as soon as you add them to slots.

Configure Ads For Your Advertisement Platform

  • Navigate to the Admin section in your Discourse forum.
  • Click on Settings and a left vertical navigation bar should appear.
  • Choose your advertisement platform.
    • House Ads - if you want to create and serve ads from your Discourse instance.
    • Adsense - if using Adsense as your advertisement platform.
    • DFP - if using the DoubleClick for Publishers advertisement platform.
    • Carbon Ads - if using the Carbon Ads advertisement platform.
    • AdButler - if using the AdButler advertisement platform.
Input Your Details
  1. Add in your publisher ID - your publisher ID can be obtained from your ad platform and can also be found in your ad tag (see pictures below).
  2. Choose your trust level from the dropdown box. This will only display ads to users with a certain level of trust. For more details about trust levels go to the Plugin Features heading.
  3. Get the Advertisement Tag from your Ad Platform - see the images below to see what a tag looks like.
  4. Add parts of your ad code to Discourse’s site settings for the locations you wish your ad to appear. Refer to image for your ad platform to where parts of your ad tag should go. For more detail about where the ad will appear
  5. Choose Your Ad Size - this is the same size that you’ve put into your ad provider to create your ad. Go to the Plugin Features heading to see a list of supported Ad sizes.
Adsense Advertisement Tag to Discourse’s Site Settings

First, add the contents of your ads.txt file to your Discourse ads txt site setting. Then copy the following values to your Discourse settings:

DoubleClick for Publishers’ Advertisement Tag to Discourse’s Site Settings

Amazon Affiliates’ Advertisement Tag to Discourse’s Site Settings

Only for Product Link and Banner Ads.

Carbon Ads Script Tag to Discourse’s Site Settings

AdButler Ads Zone URL to Discourse’s Site Settings

:warning: This plugin only support AdButler “Standard Zones”. Text and VAST are not supported.

If you browse to a zone in the AdButler admin, then you can find the Publisher ID (PPPPPP) and the Zone ID (ZZZZZZ) in the URL of your browser’s address bar:

https://admin.adbutler.com/?ID=PPPPPP&p=textadzone.view&zoneID=ZZZZZZ

Configure the ads in Admin > Settings > AdButler. Enter the publisher id in the “adbutler publisher id” setting, and enter the Zone IDs in the different zone id settings as desired.

By default, ads are assumed to be size 728 x 90, or 320 x 50 in mobile view. To use different size ads, customize using CSS in your site’s theme. Override the following CSS:

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

View Your Ad

Once you’ve configured your settings and your advertising platform has ads that are ready to serve, navigate to the page where you’ve inputted for the location and you should see ads.

Plugin Features

Available Locations for Ad Display

The following are available locations along with a description and an image showing their location within Discourse to display ads for all platforms.

Location Name Description
Topic List Top Ad will appear at the header of Discourse homepage
Topic Above Post Stream Ad will appear in the header of all Discourse forum topics
Topic Above Suggested Ad will appear in the footer above suggested topics of all Discourse forum topics
Post Bottom & Nth Post Ad will appear on the stipulated nth post within a topic. So if you have 5 posts in a topic and you want the ad to display after on the 2nd post, put 2 in ad_platform_nth_post_code .

Trust Levels

You can use the ad_platform_through_trust_level dropdown to disable ads for users above a certain trust levels. As a guide, choosing:

  • 0 shows ads to users that are not logged in.
  • 1 shows ads to users that are not logged in, and to new and basic users.
  • 2 shows ads to members as well, but not to regulars and leaders.
  • 3 shows ads to everyone, but not to leaders.
  • 4 shows ads to everyone including leaders.

To find more about trust levels in Discourse, refer to Discourse’s posts on trust levels

Personal messages

By default, ads won’t be shown in personal messages. To enable ads in personal messages, use the “no ads for personal messages” setting.

Groups

To give some users an ad-free experience, put the users in groups and add those groups to the “no ads for groups” setting.

Note that the Visibility in the group settings needs to be at least Group owners, members, moderators to ensure users who are part of the group can see that the group exists. If the Visibility of the group is more restrictive, the setting “no ads for groups” will be ignored and the ads will be visible to members of the group.

Categories

To disable ads in certain categories, add them to the “no ads for categories” setting. Also consider using the “no ads for restricted categories” to disable ads in all categories that have read access restrictions.

Tags

Individual topics can have ads disabled by using tags, and entering those tags in the “no ads for tags” setting. This is useful if some topics violate ad network policies.

:discourse2: Hosted by us? This plugin is available on our Pro, Business, and Enterprise plans. Advertising | Discourse - Civilized Discussion

Last edited by @Juan_David_Martínez 2026-07-14T20:16:44Z

Check documentPerform check on document:
79개의 좋아요
How to ad banners?
Run custom ads?
House Ad Templates
Using Adsense plugin for banners
Customization in Discourse
How to insert ads after topic content?
Monetized forum
AdSense plugin comparison
AdSense Code Missing on my Forum
Add CSP sources to the plugin
How to add ads on side?
How to inject HTML code in the head only on home and post pages
Take a break! Theme component
Advertising plugin alternatives for Discourse
Blank/Empty ads on Discourse Adsense Adplugin
How to put an add every 2 posts?
Speak with the Discourse product team about advertising
Your own banner with a link
Issue with Adsense and pageviews
I want to add adsense code in <head> for activet adsence account
How to add ads on side?
Using scripts in House Ads Plugin
MMORPG forum project, I would like to hear your thoughts
Discourse needs better search
Discourse Advertising Plugin 【Mobile display bugs】
Pyx's Modern Theme
Inaccurate plugin availability notes on meta
Bundling more popular plugins with Discourse core
Increasing DFP ad size on mobile
Code Fund Ad Customization?
How to add small banner ads to a forum!
Ads need a lot of space on topics with nested replies
Adverts on the Discourse hosted Starter plan
Any Thoughts on Supporting BSA or Alternative Advertising?
Upgrading Ember to 2.10
Is there anybody being able to profit from a website based on discourse
Using a plug-in to monetize my Discourse
Make #plugin "wiki by default"
Question about the extent of data tracking / pseudo-AI
Adsense ad crawler errors
<div> tags in posts / Ezoic integration
Almost ready to launch
How to prevent Ads Plugin from Displaying Ads on the forum homepage
Ad butler show ads Nth place between posts
Cookie compliance under GDPR
How to force users to disable ad blocker?
Donation Bar for House Ad
Affiliate link functions - rewrite
Is it possible to space out the ads in the topic?
Email Hostname Certificate Mismatch Causing sidekiq Queue Overload, Severe Site Instability
Set up a staging server
Members of hidden groups in no_ads_for_groups still see ads
Versatile Banner
Forum maintenance cost
A strange question about google ad display in my site
How to insert ads after topic content?
Versatile banner rotation to display multiple ads in the same position?
I want to insert images (banner) between the topic answers. How do I start?
Add social media handles on home page

A post was split to a new topic: How can I add the advertising code of other advertising services?

Support for Ad blocking recovery (AdSense)

Adsense added ad blocking recovery service which works quite well

Problem is if we have subscriptions or patrons it doesn’t know that and so it annoys them. Could we consider adding optional support for this tag(s) so that it can be enabled / disabled based on groups? :folded_hands:

It does require a special Tag

1개의 좋아요

Recently after updating my forum to latest version, some of my users are getting a JS syntax error, it looks like it’s coming from the discourse ad plugins, specifically the house ad:

The content security policy guidance is outdated. What’s the latest?

Thanks for the reminder that I needed to update the OP. Done. :slight_smile:

We implemented a strict-dynamic CSP a while back and you shouldn’t need to do any further setup.

We’d recommend removing https: or unsafe-inline unless you need them for some specific reason, as they do not provide any protection against XSS vulnerabilities.

1개의 좋아요

안녕하세요

가입 양식을 위해 생성한 사용자 정의 필드(Custom User Fields)를 기준으로 타겟팅된 광고를 특정 대상에게 표시할 수 있을까요? 예를 들어 성별=남/여, 위치=미국/캐나다, 혼인 여부=기혼/미혼과 같은 경우를 말씀드립니다.

이것이 불가능하다면, 해당 기능이 검토 중인지, 검토 중이라면 예상 출시 시기가 있는지 궁금합니다.

이 기능이 있다면 특정 위치에 여러 광고를 생성하되, 사용자에게는 해당 사용자에게 타겟팅된 광고만 표시할 수 있게 됩니다. 이를 통해 더 많은 수익 창출 옵션을 열 수 있습니다.

감사합니다,

1개의 좋아요

안녕하세요,

API를 통해 하우스 광고를 생성하고 관리할 수 있나요?

감사합니다

플러그인이 홈페이지에 광고를 표시하는 것을 지원하지 않습니다.
그저 손을 묶어놓은 것과 같습니다.
PC와 모바일 홈페이지 모두에 광고를 표시할 수 있는 방법이 있을까요?
참고로: Discourse는 Docker를 사용하여 설치되어 있습니다.

감사합니다.

안녕하세요, 아래 위치가 작동하지 않나요?

답변해 주셔서 감사합니다. 말씀하신 옵션을 찾을 것 같습니다.


수정: 토픽 목록 상단 광고. 하지만 홈페이지에서 광고가 표시되지 않습니다.

1개의 좋아요

:partying_face: 이 플러그인은 이제 Bundling more popular plugins with Discourse core 에 포함된 Discourse 코어에 번들링되었습니다. 자체 호스팅을 수행하고 해당 플러그인을 사용하는 경우, 다음 업그레이드 전에 app.yml에서 플러그인을 제거해야 합니다.

3개의 좋아요

음, 관리자 섹션, 플러그인 드롭다운 메뉴, 그리고 관리자 검색에서 플러그인을 찾을 수 없어요.

(discourse 업데이트 및 app.yml에서 플러그인 제거)

광고 차단기를 사용하시나요?

모든 사이트 설정에서 설정을 검색해 보시는 것도 도움이 될 수 있습니다. 광고 설정을 필터링하기 위해 plugin:discourse-adplugin이라는 용어를 사용하세요.

아니요, 저는 Brave 브라우저를 사용하는데, 시ールド는 꺼둔 상태입니다. 참고로 새로운 관리자 메뉴에서 좀 헤매고 있어요.

{Yourforum}/admin/site_settings/category/all_results?filter=plugin%3Adiscourse-adplugin으로 메뉴를 사용하지 않고 설정으로 이동할 수 있습니다

검색 결과가 없습니다

1개의 좋아요

플러그인이 이름이 변경된 것으로 보입니다.

제 사이트에서는 <forum_url>/admin/plugins/pluginad/house_creatives 경로에서 찾을 수 있습니다. 그리고 House Ads 외에는 다른 것을 사용하지 않기 때문에, 사이드바에 보이는 링크가 바로 그것입니다:

하우스 광고 섹션은 하우스 광고에 관한 내용만 다루고 있다고 생각합니다. 다른 광고 설정은 자체 탭이 없습니다. 캘린더와 이벤트 플러그인처럼, 관리자 사이드바의 "캘린더"는 휴일 관리 페이지로만 이동할 뿐, 캘린더 및 이벤트 플러그인과 관련된 모든 항목으로 연결되지 않습니다.

대부분의 플러그인은 브레드크럼, 이름, 설명, 설정 탭이 포함된 페이지를 갖추고 있지만, 아직 그렇지 않은 플러그인도 있습니다. 이 플러그인이 그 예입니다.

아직 관리 메뉴에서 해당 플러그인을 찾지 못했습니다. 분명 너무 뻔해서 제가 놓치고 있는 것 같습니다.