House Ads in the official Ad Plugin

I did rebuild the website with putty and it worked for me. Now the option for House ads is available.

2 Likes

You can put the <script> parts in a customization in the </body> and your link as a house ad.

4 Likes

Could you please provide me the steps?
This could be a life saver for me.

Step1:
I should paste the entire <script> parts in </body>

Step2:
I’m confused here.
Could you please tell me what should be step2?

1 Like

Yes.

Create a new house ad with this content

<a href="ad.html">Click here to shop</a>

And add it to one of the 4 sections.

3 Likes

@zogstrip
But I’m not seeing any link between step1 and step2?
Or am I not getting it?

Step2: is just creating a hyperlink - it doesn’t do anything else.

I’m trying to place ads by pasting JS code.
The JS code that I pasted in </body> isn’t making any difference.

Please correct me if I’m wrong.

1 Like

My bad, I misread. I thought you needed both steps… I missed the “OR:see_no_evil:

Yeah, I don’t think <script> tags are going to work in House Ad. You should only put “bare” html (often a link with/out an image).

3 Likes

Hi Neil,

I created a house ad and used the site setting ‘no ads for groups’ to exclude certain groups from seeing ads, but they still do. Is this a bug or does this setting affect non-house ads only? Thanks!

1 Like

Even if it worked, it may only populate the ad unit once. We built the ad plugin to deal with refreshing ads for you when users navigate, which requires calling the ad network’s API whenever the page changes. Trying to put an ad network’s javascript into the house ads input fields isn’t going to work.

5 Likes

I fixed an issue that sounds like that. Have you updated the plugin recently?

6 Likes

Yes, it works fine now. Thanks for that!

5 Likes

So we’ve implemented House Ads on our site, and we’ve realized an issue. If you’re using ads from a 3rd party provider, you normally need to provide a file /ads.txt (similar to robots.txt) in the root of the site. Is that something that’s easy to do? We can upload it manually, but perhaps it’s better to include an option to paste it in in the ads plugin.

3 Likes

You should have a textarea field in your site settings where you can paste the contents of your /ads.txt file. It should look like this:

8 Likes

It’s a shame that it’s called “adsense ads text” since it isn’t specific to adsense. Renaming it now will be annoying.

8 Likes

That’s my mistake, sorry. I can take a look at renaming.

5 Likes

As of this commit, the setting has been renamed to “ads txt” and moved to the Ad Plugin group:

10 Likes

Hi, just curious, so the “Topic above suggested” ad will appear only for logged-in users and not others? I recently faced this issue on both the desktop and mobile version. Thoughts, please?

1 Like

Not true. You can see our own ads (“Stay hydrated!”) below that last post of a topic when you’re not logged in.

3 Likes

I think I came across a small bug:

image
Expected behaviour: Both house ads are shown after another.
Actual behavior: Only the ad that is added later is shown.

1 Like

It will display one of the list randomly.

10 Likes

Strange, I’ll look into my code and share the link here. Thank you. :slight_smile:

1 Like