# إعلانات المنزل في مكون الإعلانات الرسمي

**URL:** https://meta.discourse.org/t/house-ads-in-the-official-ad-plugin/116715
**Category:** Announcements
**Tags:** advertising
**Created:** [2 مايو 2019، 8:30م UTC](https://meta.discourse.org/t/house-ads-in-the-official-ad-plugin/116715 "2019-05-02T20:30:39Z")
**Posts on this page:** 20
**Page:** 2

<div class="post-metadata">

### Author: ![pradeepkumar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pradeepkumar/32/119914_2.png) [@pradeepkumar](https://meta.discourse.org/u/pradeepkumar)
#### Post date: [7 مايو 2019، 4:14م UTC](https://meta.discourse.org/t/house-ads-in-the-official-ad-plugin/116715/24 "2019-05-07T16:14:06Z")

</div>

Thanks mate! Yours look cool too! I’ll be using Bitly short links to see what kind of ads attract more people.

---

<div class="post-metadata">

### Author: ![sat](https://avatars.discourse-cdn.com/v4/letter/s/22d042/32.png) [@sat](https://meta.discourse.org/u/sat)
#### Post date: [7 مايو 2019، 4:31م UTC](https://meta.discourse.org/t/house-ads-in-the-official-ad-plugin/116715/25 "2019-05-07T16:31:19Z")

</div>

> [@neil](#):
>
> How would you want to serve them alongside another ad network?

may be based on page impression? how you are planning to implement this logic?

---

<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: [7 مايو 2019، 4:33م UTC](https://meta.discourse.org/t/house-ads-in-the-official-ad-plugin/116715/26 "2019-05-07T16:33:36Z")

</div>

Hi @neil would it be possible to alocate ads per catégorie ?

On our forum we have accommodation, employment, health, education etc…

So for a real estate agent, they don’t really care having their ad in health or other, they only want to focus on accommodation catégorie. Thanks for letting us know.

Best,

---

<div class="post-metadata">

### Author: ![sat](https://avatars.discourse-cdn.com/v4/letter/s/22d042/32.png) [@sat](https://meta.discourse.org/u/sat)
#### Post date: [7 مايو 2019، 4:45م UTC](https://meta.discourse.org/t/house-ads-in-the-official-ad-plugin/116715/27 "2019-05-07T16:45:25Z")

</div>

@Jeremie_Leroy, I liked this idea. targeting ads based on category will be more effective.

---

<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: [9 مايو 2019، 3:01م UTC](https://meta.discourse.org/t/house-ads-in-the-official-ad-plugin/116715/28 "2019-05-09T15:01:47Z")

</div>

[I added a setting to control how often house ads are shown](https://github.com/discourse/discourse-adplugin/commit/4bd20358669191de5b1f18d36fa314b83b9233f9) instead of other ad networks that are configured to show in the same placement. It’s called “house ads frequency” and takes a percentage (0 to 100). Use 0 to disable house ads (without having to remove configuration from Admin \> Plugins \> House Ads), and 100 to always choose house ads (the default).

> [@Jeremie\_Leroy](#):
>
> Hi @neil would it be possible to alocate ads per catégorie ?

Sounds possible and useful. I think it makes sense to configure this on each ad. A “restrict to categories” input?

---

<div class="post-metadata">

### Author: ![chrism2671](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chrism2671/32/119661_2.png) [@chrism2671](https://meta.discourse.org/u/chrism2671)
#### Post date: [10 مايو 2019، 11:35ص UTC](https://meta.discourse.org/t/house-ads-in-the-official-ad-plugin/116715/29 "2019-05-10T11:35:41Z")

</div>

This is awesome. Is there a way to fire some javascript when the infinite scroll loads the next chunk of posts?

The advantage is:

- House ads looks like it’ll work well for any ad server/network
- Single page apps and infinite scrolls don’t usually work with ad servers, and normally require a JS tag to fire when new ad locations are added to the DOM tree.

It might be possible to do this already, I’m not sure.

---

<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: [10 مايو 2019، 5:37م UTC](https://meta.discourse.org/t/house-ads-in-the-official-ad-plugin/116715/30 "2019-05-10T17:37:01Z")

</div>

Maybe what you’re looking for is the theme component code:

> [@Request: House Ads Plugin](https://meta.discourse.org/t/request-house-ads-plugin/75532/3):
>
> I thought of this request again, and it turns out that it’s fairly simple to implement without a plugin now by using [Theme Components](https://meta.discourse.org/t/developer-s-guide-to-discourse-themes/93648#heading--4-b). The code for placing an ad above topics, and after every 3 posts: \<script type="text/x-handlebars" data-template-name="/connectors/topic-above-post-stream/my-house-ads"\> \<div style="margin-bottom:10px;"\> \<a href="http://www.discourse.org/buy"\> Discourse Hosting For YOU! \</a\> \</div\> \</script\> …

---

<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: [13 مايو 2019، 1:50م UTC](https://meta.discourse.org/t/house-ads-in-the-official-ad-plugin/116715/31 "2019-05-13T13:50:20Z")

</div>

4 posts were merged into an existing topic: [Ad blocker blocks ad plugin in admin. Disable ad blockers to fix](https://meta.discourse.org/t/ad-blocker-blocks-ad-plugin-in-admin-disable-ad-blockers-to-fix/117299/9)

---

<div class="post-metadata">

### Author: ![Manikandan\_Sivakumar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/manikandan_sivakumar/32/141020_2.png) [@Manikandan\_Sivakumar](https://meta.discourse.org/u/Manikandan_Sivakumar)
#### Post date: [14 مايو 2019، 10:42ص UTC](https://meta.discourse.org/t/house-ads-in-the-official-ad-plugin/116715/32 "2019-05-14T10:42:03Z")

</div>

This is a dream plugin feature. Thank you so much.

I have two questions:

1. The “House Ads” option is not loading sometimes. When I click on it I just get the “loading symbol” alone.

 ![51](https://global.discourse-cdn.com/meta/original/3X/5/f/5f7559047dc7efa65171e31c668dec8dff7dbff2.png)

1. The plugin doesn’t have mobile responsive by default for the ad images? I kept 3 ads with various sizes and they look disorganized for the mobile. Can you kindly guide me for this?

Thank you once again. This plugin is a gamechanger.

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [14 مايو 2019، 10:45ص UTC](https://meta.discourse.org/t/house-ads-in-the-official-ad-plugin/116715/33 "2019-05-14T10:45:17Z")

</div>

> [@Manikandan\_Sivakumar](#):
>
> When I click on it I just get the “loading symbol” alone

Do you have an ad blocker? See [https://meta.discourse.org/t/ad-blocker-blocks-ad-plugin-in-admin-disable-ad-blockers-to-fix/117299/9](https://meta.discourse.org/t/ad-blocker-blocks-ad-plugin-in-admin-disable-ad-blockers-to-fix/117299/9)

---

<div class="post-metadata">

### Author: ![Manikandan\_Sivakumar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/manikandan_sivakumar/32/141020_2.png) [@Manikandan\_Sivakumar](https://meta.discourse.org/u/Manikandan_Sivakumar)
#### Post date: [14 مايو 2019، 10:49ص UTC](https://meta.discourse.org/t/house-ads-in-the-official-ad-plugin/116715/34 "2019-05-14T10:49:00Z")

</div>

> [@david](#):
>
> Do you have an ad blocker?

Yes, thank you, this issue got fixed now. 😃

Any help on the mobile responsive thing? Should I manually write my own code to make them responsive?

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [14 مايو 2019، 10:53ص UTC](https://meta.discourse.org/t/house-ads-in-the-official-ad-plugin/116715/35 "2019-05-14T10:53:21Z")

</div>

> [@Manikandan\_Sivakumar](#):
>
> Any help on the mobile responsive thing? Should I manually write my own code to make them responsive?

I think that is the current solution, yes. You can add CSS to a theme component. You should be able to use your browser inspector to see how we have done the demo ads here on meta.

---

<div class="post-metadata">

### Author: ![Manikandan\_Sivakumar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/manikandan_sivakumar/32/141020_2.png) [@Manikandan\_Sivakumar](https://meta.discourse.org/u/Manikandan_Sivakumar)
#### Post date: [14 مايو 2019، 10:53ص UTC](https://meta.discourse.org/t/house-ads-in-the-official-ad-plugin/116715/36 "2019-05-14T10:53:57Z")

</div>

Okay, thank you so much.

---

<div class="post-metadata">

### Author: ![thegurjyot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thegurjyot/32/120516_2.png) [@thegurjyot](https://meta.discourse.org/u/thegurjyot)
#### Post date: [14 مايو 2019، 12:33م UTC](https://meta.discourse.org/t/house-ads-in-the-official-ad-plugin/116715/37 "2019-05-14T12:33:24Z")

</div>

I am unable to see house-ads option on my website. The plugin is also not showing any update. Is there something special which I need to do to get these house ads option?

---

<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: [14 مايو 2019، 2:17م UTC](https://meta.discourse.org/t/house-ads-in-the-official-ad-plugin/116715/38 "2019-05-14T14:17:43Z")

</div>

We provide no CSS for house ads at all. You have total freedom on the html and styling, so responsive CSS is up to 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: [14 مايو 2019، 2:18م UTC](https://meta.discourse.org/t/house-ads-in-the-official-ad-plugin/116715/39 "2019-05-14T14:18:11Z")

</div>

How do you update your site?

---

<div class="post-metadata">

### Author: ![thegurjyot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thegurjyot/32/120516_2.png) [@thegurjyot](https://meta.discourse.org/u/thegurjyot)
#### Post date: [15 مايو 2019، 11:38ص UTC](https://meta.discourse.org/t/house-ads-in-the-official-ad-plugin/116715/40 "2019-05-15T11:38:05Z")

</div>

I update the website when updates show in the dashboard. So basically from the dashboard only.  
Should I need to update the website with putty to get this update?

---

<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: [15 مايو 2019، 1:54م UTC](https://meta.discourse.org/t/house-ads-in-the-official-ad-plugin/116715/41 "2019-05-15T13:54:15Z")

</div>

Hmm I’m not sure what’s wrong. Do you see sections in settings for CodeFund and Carbon Ads?

 ![2019-05-15_09-53](https://global.discourse-cdn.com/meta/original/3X/4/7/47e3fa4c98d0b1b76bc3a20e850c60568a2e07a4.png)

---

<div class="post-metadata">

### Author: ![thegurjyot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thegurjyot/32/120516_2.png) [@thegurjyot](https://meta.discourse.org/u/thegurjyot)
#### Post date: [15 مايو 2019، 2:00م UTC](https://meta.discourse.org/t/house-ads-in-the-official-ad-plugin/116715/42 "2019-05-15T14:00:20Z")

</div>

Yes I can see the settings for CodeFund and Carbon Ads.  
Although, I must admit that it’s the first time I saw those settings.

---

<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: [15 مايو 2019، 2:30م UTC](https://meta.discourse.org/t/house-ads-in-the-official-ad-plugin/116715/43 "2019-05-15T14:30:35Z")

</div>

You’re using an Ad Blocker?

[Previous page](https://meta.discourse.org/t/house-ads-in-the-official-ad-plugin/116715.md?page=1)

[Next page](https://meta.discourse.org/t/house-ads-in-the-official-ad-plugin/116715.md?page=3)
