Advertising Plugin for Discourse - Serve Ads on your Discourse Forum (Official Endorsed)


(Brock) #95

Appreciate it @neil ! We are going to attempt to do proper responsive using JS like on our regular site
I’ll come back once we try it out on our test server.


Does it work with Native In-Feed and In-Article Ad blocks?

Status don’t change for Native type blocks…

(Neil Lalonde) #97

Status 400 (bad request) is coming from AdSense, and means you need to wait until Adsense approves your new ad units or has some ads to show. It’s hard to say why Adsense is rejecting the request.

(Neil Lalonde) split this topic #102

A post was split to a new topic: Using DFP to show house ads

(Stefano Maffulli) #118

this reply is a great resource, I wish I found this weeks ago. I’d suggest to create a #howto out of this, I’d be happy to contribute as I keep on learning DFP on my own.

(Anil Gupta) #129

Wow…this works.
Thanks @Steven and @pfaffman for the tips.

(Anil Gupta) #130

One more question:
Do we have any plans to support ‘In-feed’ ads?

These ads are basically meant to be shown WITHIN the post content and they really perform well than ads outside the post reading area.

(cpradio) #131

Do a search, there are feature requests and requests in #marketplace for them to be added, no one seems interested enough to do it though.

(Sebastian) #132

what’s the extent of amazon CPM support and what would the plugin author’s best practice suggestion be for what fall-back code to use? What are experiences with Amazon CPM and responsiveness?

(Anil Gupta) #144

Hi @cpradio
Not sure if you are interested in adsense customization on discourse, but, i wanted to share this update.

We no longer need to use the Discourse Adsense plugin to get ads inside the post!
The adsense AUTO ADS can do it in neat and pretty way.

See here:

This can be done using the Adsense Auto ads with just a single code that can be placed inside the theme customization head tag.
Google is using AI (artificial intelligence) to find the right point to display the ads automatically on any page on your website. No need to worry about type of placement of ads now.
Its all automatic!

Check this link for verifying the display of ads.

(Neil Lalonde) #145

That’s very cool Anil! I’ve been navigating around your site and eventually wasn’t seeing any ads in any topics. I wonder if AdSense is making that decision, or if there’s a problem with Auto Ads on single-page apps like Discourse.


i just read more about this yesterday… it’ll be interesting to see how intelligent the placement really is…

(Anil Gupta) #147

Yes, i guess that could be a problem at this time.
I have been trying to test the pages and it looks like it loads ads on full page load only.

I will test it for couple of days on Discourse installation to see the AD metrics and then take a decision with respect to keeping it or move back to plugin.

On a side note, I have tested it on wordpress installation and AUTO ADS are indeed loaded separately on each new post there pretty well. The AD placement varies on each page though.
Sometimes, only 1 AD is shown and other times up-to 3 automatically at different places on the page.


yikes… so, it’s almost completely outside of your control… ewwwwwwww.

(Anil Gupta) #149

But, the good thing is that even when you have switched ON the AUTO-ADS, you can still place separate AD codes wherever you like.

The AUTO-ADS automatically detect the presence of other Adsense ADS (that you may have explicitly added) and maintain the ‘number of ads on a single page’ requirement and then places its own set of ads.

So, it is pretty accommodating.
In a nutshell, both adsense ads through discourse plugin and auto ads can co-exist.

(Guy Fawkes) #150

From my point of view the best way to advertise on a website without annoying users is to be able to customise your ads like quora does :

I know that google dont support this kind of thnigs is there any other ads company that can allows us to do that or if there is anyway to do it


Hi there,

I just added

  • our amazon affiliate id
  • sizes
  • N=5

And although I do get a new element in our threads, it’s not an Amazon advertisement but it’s our site’s header instead.

Does anyone have a clue what’s happening here?

See this topic:

Thanks for looking into it,


(Neil Lalonde) #152

@Roy_ILGM It looks like your amazon_post_bottom_src_code value is ilovegrowingm-20 but it should be a complete URL.


Hi Neil, thanks for the advice.

I’ve been trying basically every link I can create within the amazon affiliate+advertisement environement. Both with and without dimensions pre-set and can’t seem to figure out what needs to go in there.

Can you specify what complete URL I need and where I can find it?

Kind regards,

(Vaping Community) #154

Am I right in thinking this auto adds the <script> to /head or do I need to add that manually?