# House ads & adspeed

**URL:** https://meta.discourse.org/t/house-ads-adspeed/319499
**Category:** Support
**Tags:** advertising
**Created:** [July 31, 2024, 3:51pm UTC](https://meta.discourse.org/t/house-ads-adspeed/319499 "2024-07-31T15:51:23Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![anon48433008](https://avatars.discourse-cdn.com/v4/letter/a/22d042/32.png) [@anon48433008](https://meta.discourse.org/u/anon48433008)
#### Post date: [July 31, 2024, 3:51pm UTC](https://meta.discourse.org/t/house-ads-adspeed/319499/1 "2024-07-31T15:51:23Z")

</div>

I’ve used a few different software applications with the house ads, most recently revive  
[https://www.revive-adserver.net](https://www.revive-adserver.net)  
where I needed to add

`<script async src="//servedby.revive-adserver.net/asyncjs.php"></script>`

to a head tag, others needed similar tags

I’m trying out adspeed

> **[Ad Server, Ad Serving & Banner Ad Manager Solutions - AdSpeed.com](https://www.adspeed.com)**
>
> AdSpeed AdServer is a reliable and affordable ad serving solution. We serve ads, track impressions, clicks, revenue, conversions and report ad metrics in real-time.

and its working on two other sites I have without issue, not Discourse

This is the ad zone code placed in all three to deliver the ads

```plaintext
<!-- AdSpeed.com Tag 8.1 for [Zone] Sixguns_Home_Page -->
<script type="text/javascript" src="https://g.adspeed.net/js/asld.js" data-as-oid="29270" data-as-zid="132525"></script>
<!-- AdSpeed.com End -->

```

I hit up the support at adpseed and they even searched here but were no help,

Does anyone know of a simple fix to get these to display on Discourse?

Thank you

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [July 31, 2024, 3:57pm UTC](https://meta.discourse.org/t/house-ads-adspeed/319499/2 "2024-07-31T15:57:32Z")

</div>

Is that the code to include the ad? How are you loading it?

Is the browser loading the remote script? Did you add `g.adspeed.net` to `cors-origins`?

---

<div class="post-metadata">

### Author: ![anon48433008](https://avatars.discourse-cdn.com/v4/letter/a/22d042/32.png) [@anon48433008](https://meta.discourse.org/u/anon48433008)
#### Post date: [July 31, 2024, 4:18pm UTC](https://meta.discourse.org/t/house-ads-adspeed/319499/3 "2024-07-31T16:18:53Z")

</div>

> [@pfaffman](#):
>
> Is that the code to include the ad? How are you loading it?

Yes, and this is how I have it loaded (just updated to an advanced code

```plaintext
<!-- AdSpeed.com Tag 8.1 for [Zone] Sixguns Home Top 728x90 -->
<script type="text/javascript">var asdate=new Date();var q='&tz='+asdate.getTimezoneOffset()/60 +'&ck='+(navigator.cookieEnabled?'Y':'N') +'&jv='+(navigator.javaEnabled()?'Y':'N') +'&scr='+screen.width+'x'+screen.height+'x'+screen.colorDepth +'&z='+Math.random() +'&ref='+escape(document.referrer.substr(0,255)) +'&uri='+escape(document.URL.substr(0,255));document.write('<ifr'+'ame width="728" height="90" src="https://g.adspeed.net/ad.php?do=html&zid=132525&oid=29270&wd=728&ht=90&target=_blank'+q+'" frameborder="0" scrolling="no" allowtransparency="true" hspace="0" vspace="0"></ifr'+'ame>');</script>
<noscript><iframe width="728" height="90" src="https://g.adspeed.net/ad.php?do=html&zid=132525&oid=29270&wd=728&ht=90&target=_blank" frameborder="0" scrolling="no" allowtransparency="true" hspace="0" vspace="0"><a href="https://g.adspeed.net/ad.php?do=clk&zid=132525&oid=29270&wd=728&ht=90&pair=as" target="_blank"><img style="border:0;max-width:100%;height:auto;" src="https://g.adspeed.net/ad.php?do=img&zid=132525&oid=29270&wd=728&ht=90&pair=as" alt="i" width="728" height="90"/></a></iframe>
</noscript><!-- AdSpeed.com End -->

```

 ![image](https://global.discourse-cdn.com/meta/original/4X/a/b/0/ab05bef5d7e96a7a496604aaa76b690056c12a4f.png)

> [@pfaffman](#):
>
> cors-origins

With adspeed its a zone and you can place different ads in it, on my [video site](https://firearm-videos.sixguns.com) with the same code there are two ads being served, same with [blog](https://firearms-blog.sixguns.com) but no mobile there yet.

Was unaware of that but just gave it a try

 ![image](https://global.discourse-cdn.com/meta/original/4X/7/9/b/79b5d61611e83667845a7200e6f76267b1c3a4e6.png)

Was hoping to mark solved but no go, however, I am now getting browsers to identify the attempt

![image](https://global.discourse-cdn.com/meta/original/4X/e/5/8/e581f3829efd06a1e5374f41539488c059006edc.png)

 ![image](https://global.discourse-cdn.com/meta/original/4X/0/5/d/05da495f5c0af310456fd3499bf9242e4ddbcaec.png)

so that got me closer 🤞 this means something simple to you?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [July 31, 2024, 4:34pm UTC](https://meta.discourse.org/t/house-ads-adspeed/319499/4 "2024-07-31T16:34:31Z")

</div>

See where it says “each origin must include http:// or https://”? I think it means it.

---

<div class="post-metadata">

### Author: ![anon48433008](https://avatars.discourse-cdn.com/v4/letter/a/22d042/32.png) [@anon48433008](https://meta.discourse.org/u/anon48433008)
#### Post date: [July 31, 2024, 4:50pm UTC](https://meta.discourse.org/t/house-ads-adspeed/319499/5 "2024-07-31T16:50:02Z")

</div>

> [@pfaffman](#):
>
> I think it means it.

🤗 I think we may have hung out in the past 😁

No help,

 ![image](https://global.discourse-cdn.com/meta/original/4X/e/a/e/eae36eb2e686c9205ce28c28472908684ef90407.png)

but going off a hunch with no idea what I’m doing I added the bottom line seen here

 ![image](https://global.discourse-cdn.com/meta/original/4X/6/8/c/68c1ecb362a68c4168a107bc1dff015a85f1750b.png)

Which changed the console error

 ![image](https://global.discourse-cdn.com/meta/original/4X/6/f/a/6fa7923e26b2e9b77dcaa04fa4fd70fb054f326b.png)

does that, other than I know nothing, mean anything?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [July 31, 2024, 5:22pm UTC](https://meta.discourse.org/t/house-ads-adspeed/319499/6 "2024-07-31T17:22:08Z")

</div>

First: I have spent most of my morning working on some problems that someone has had with ads and even after I did three very clever things, the problem has at least sort-of only gotten worse.

I’m glad that I thought you’d see the humor in my sarcasm.

> [@anon48433008](#):
>
> so that got me closer

Yes! That’s awesome! Now it would appear that the code is executing. I have spent many hours of my life modifying code that was not executing, so you’re really moving along.

So my idea appears to have been necessary, but not sufficient to solving your problem.

I guess maybe that php thing you’re calling spits out the `asld.js` file that it’s talking about.

> [@anon48433008](#):
>
> this means something simple to you?

Uh. Maybe? It means that somehow that script wants to know something about some owner and something is supposed to tell it and it’s not getting told. That something is probably in the part after the `?` in the `src=` url in your image above.
