# House Ads in the official Ad Plugin

**URL:** https://meta.discourse.org/t/house-ads-in-the-official-ad-plugin/116715
**Category:** Announcements
**Tags:** advertising
**Created:** [May 2, 2019, 8:30pm UTC](https://meta.discourse.org/t/house-ads-in-the-official-ad-plugin/116715 "2019-05-02T20:30:39Z")
**Posts on this page:** 1
**Showing post:** 182

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [November 18, 2023, 11:28pm UTC](https://meta.discourse.org/t/house-ads-in-the-official-ad-plugin/116715/182 "2023-11-18T23:28:12Z")

</div>

> [@Jim\_Starkweather](#):
>
> the current Ad server software I am using (AdAdmin)

Assuming the script code looks something like this:

```plaintext
<div id="ABC"></div><script src="https://www.barattalo.it/adserve.php?t=ABC&f=4">/*300x250*/</script>

```

there’s a good chance that `<div id="ABC"></div>` is the target that the script at `<script src="https://www.barattalo.it/adserve.php?t=ABC&f=4"></script>` injects the ad into.

I’m guessing a bit here, but it’s likely that the exact same script tag is generated for all ads served from your adserver. If that’s the case, the approach outlined here might work for you: [Is there a plugin for revive-adserver for discourse? - #3 by simon](https://meta.discourse.org/t/is-there-a-plugin-for-revive-adserver-for-discourse/190483/3).

To test it out, create a theme component from the the Admin / Customize / Themes section of your site and add the script you’re seeing in the embed code to the `head` section of the theme component. Then include that theme component on all you site’s themes. After having done that, just add the embed code’s target `div` element to your house ads. For example `<div id="ABC">`.

If this doesn’t work, check your web inspector’s console for any errors. One thing to note is that there can be some unexpected issues with disabled ad blockers: [Chrome adblock extension house ads issue](https://meta.discourse.org/t/chrome-adblock-extension-house-ads-issue/284097).

---

_[View the full topic](https://meta.discourse.org/t/house-ads-in-the-official-ad-plugin/116715)._
