# フォーラムのホームページで「Ads Plugin」による広告表示を防ぐ方法

**URL:** https://meta.discourse.org/t/how-to-prevent-ads-plugin-from-displaying-ads-on-the-forum-homepage/356799
**Category:** Support
**Tags:** advertising
**Created:** [2025 年 3 月 11 日午後 2:56 UTC](https://meta.discourse.org/t/how-to-prevent-ads-plugin-from-displaying-ads-on-the-forum-homepage/356799 "2025-03-11T14:56:51Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Jacob\_Peebles](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jacob_peebles/32/168161_2.png) [@Jacob\_Peebles](https://meta.discourse.org/u/Jacob_Peebles)
#### Post date: [2025 年 3 月 11 日午後 2:56 UTC](https://meta.discourse.org/t/how-to-prevent-ads-plugin-from-displaying-ads-on-the-forum-homepage/356799/1 "2025-03-11T14:56:52Z")

</div>

こんにちは、フォーラムのホームページに広告が表示されないように、[広告プラグイン](https://meta.discourse.org/t/discourse-advertising-plugin-ads/33734)をどのように設定すればよいですか？

> **[Mamapedia™](https://www.mamapedia.com/)**
>
> Mamapedia™ - join our community of over 3.5 million moms and dads who share wisdom and find support every day.

 ![Screenshot 2025-03-11 at 10.56.42 AM](https://global.discourse-cdn.com/meta/original/4X/0/3/f/03fb4a2c260180be4f54c34b6d570b59428eb490.jpeg)

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [2025 年 3 月 11 日午後 4:57 UTC](https://meta.discourse.org/t/how-to-prevent-ads-plugin-from-displaying-ads-on-the-forum-homepage/356799/3 "2025-03-11T16:57:50Z")

</div>

それに対する設定はないと思いますが、CSSで非表示にすることができます。

> **使用しないでください**
>
> ```css
> .navigation-topics .adsense-topic-list-top {
> display: none;
> }
> 
> ```

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [2025 年 3 月 11 日午後 5:11 UTC](https://meta.discourse.org/t/how-to-prevent-ads-plugin-from-displaying-ads-on-the-forum-homepage/356799/4 "2025-03-11T17:11:42Z")

</div>

GoogleがCSSで広告を隠すことに満足しているかどうかはわからない…それは恐らく利用規約違反です。

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [2025 年 3 月 11 日午後 5:20 UTC](https://meta.discourse.org/t/how-to-prevent-ads-plugin-from-displaying-ads-on-the-forum-homepage/356799/5 "2025-03-11T17:20:12Z")

</div>

訂正していただきありがとうございます。知りませんでしたが、理にかなっています。  
IAに尋ねました。

> AdSenseパブリッシャーにとって、広告を非表示にするポリシーは微妙です。一般的に、クリックやインプレッションを操作していない限り、正当なデザインまたはユーザーエクスペリエンス上の理由で特定の広告ユニットを非表示にすることは許可されています。
> 
> 他の広告を表示したまま、特定の広告プレースメントを非表示にしたい場合、通常は次の場合に許容されます。
> 
> 1. 正当な理由（レスポンシブデザインや特定のページレイアウトなど）で行っている場合
> 2. 他の広告へのクリックを促すための不正な方法を使用していない場合
> 3. Googleのポリシーに違反する方法で非表示を実装していない場合
> 
> Googleの主な懸念は、次のような行為を防ぐことです。
> 
> - 広告を非表示にしてもクリック可能にする
> - 誤ってクリックを生成する目に見えないオーバーレイを作成する
> - 広告が読み込まれるが表示されない「広告の詰め込み」を実装する

許可/禁止するルートを指定する設定があると便利でしょう。

---

<div class="post-metadata">

### Author: ![Jacob\_Peebles](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jacob_peebles/32/168161_2.png) [@Jacob\_Peebles](https://meta.discourse.org/u/Jacob_Peebles)
#### Post date: [2025 年 3 月 11 日午後 5:22 UTC](https://meta.discourse.org/t/how-to-prevent-ads-plugin-from-displaying-ads-on-the-forum-homepage/356799/6 "2025-03-11T17:22:17Z")

</div>

はい、@RGJ、その通りです。すべてのインプレッションがページに表示され、ユーザーが閲覧できると仮定しています。

また、これはホームページのみを対象としているわけではありませんよね、@Arkshine？

---

<div class="post-metadata">

### Author: ![Jacob\_Peebles](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jacob_peebles/32/168161_2.png) [@Jacob\_Peebles](https://meta.discourse.org/u/Jacob_Peebles)
#### Post date: [2025 年 3 月 11 日午後 5:23 UTC](https://meta.discourse.org/t/how-to-prevent-ads-plugin-from-displaying-ads-on-the-forum-homepage/356799/7 "2025-03-11T17:23:36Z")

</div>

@Arkshine その通りです。「Discourseホームページに広告を表示しない」というシンプルな設定があれば便利だと思います。他のユーザーも同様に望んでいるのではないでしょうか。

---

<div class="post-metadata">

### Author: ![Jacob\_Peebles](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jacob_peebles/32/168161_2.png) [@Jacob\_Peebles](https://meta.discourse.org/u/Jacob_Peebles)
#### Post date: [2025 年 3 月 14 日午後 3:13 UTC](https://meta.discourse.org/t/how-to-prevent-ads-plugin-from-displaying-ads-on-the-forum-homepage/356799/8 "2025-03-14T15:13:35Z")

</div>

他に何かアイデアはありますか？フォーラムのホームページに大きな広告が表示されるのを望まない人が99％いると仮定しなければなりませんが、誰かがこの問題を回避する方法を見つけましたか？

@Arkshine ホームページ/ルートページのみで広告を非表示にするCSSトリックはありますか？リスクを冒しても構いません。最初の印象からくるひどいユーザーエクスペリエンスよりはましです。

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [2025 年 3 月 14 日午後 4:07 UTC](https://meta.discourse.org/t/how-to-prevent-ads-plugin-from-displaying-ads-on-the-forum-homepage/356799/9 "2025-03-14T16:07:21Z")

</div>

> [@Jacob\_Peebles](#):
>
> ホームページ/ルートページのみで広告を抑制するCSSトリックはありますか？最初の印象からのひどいユーザーエクスペリエンスよりは、リスクを冒す価値があります。

これは、ホームページの広告HTMLを_削除_する（CSSで_非表示_にするのではなく）JavaScriptです。  
うまくいくか教えてください。

テーマのJSタブに入れることができます。

```js
import { apiInitializer } from "discourse/lib/api";

export default apiInitializer((api) => {
  api.onPageChange((path) => {
    if (path === "/") {
      document.querySelector(".adsense-topic-list-top")?.remove();
    }
  });
});

```

 ![The image shows a code snippet in a code editor for an Ember.js application, focused on JavaScript code with logic for handling page changes and template management. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/0/3/9/03918e78be679b7831e0333896312ae9a3033eca.png)

---

<div class="post-metadata">

### Author: ![Jacob\_Peebles](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jacob_peebles/32/168161_2.png) [@Jacob\_Peebles](https://meta.discourse.org/u/Jacob_Peebles)
#### Post date: [2025 年 3 月 14 日午後 7:18 UTC](https://meta.discourse.org/t/how-to-prevent-ads-plugin-from-displaying-ads-on-the-forum-homepage/356799/10 "2025-03-14T19:18:24Z")

</div>

@Arkshine 様、うまくいきました。

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2025 年 4 月 13 日午後 7:19 UTC](https://meta.discourse.org/t/how-to-prevent-ads-plugin-from-displaying-ads-on-the-forum-homepage/356799/11 "2025-04-13T19:19:17Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
