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

faq-material
official

(Jose C Gomez) #82

No additional feedback on this? When it errors it works fine after I refresh.


#83

Some sort of support responsive ads would be great, specifically for iOS’s split view mode where the wider ads will distort the page.


(Benjamin Meghnagi Rozenberg (Broz)) #84

The dpf banner lacks of dimensions 300x100
You should update them to make it compatible with new dpf rules


(Neil Lalonde) #86

Rather than adding all the possible ad sizes, I’ll try to add new settings: responsive, and “unspecified” to get the size from DFP/AdSense. I don’t know why ad sizes are needed in the plugin, but I’ll find out soon enough I’m sure.


(Neil Lalonde) #87

I was able to get responsive ads in AdSense working on desktop. An example of a responsive ad that filled the width:

I’ll do mobile next. (For some reason the plugin hard-codes a size of 320x50 on mobile for all AdSense ads…)

But DFP… :cry:

Support for truly responsive ads doesn’t exist. You always needs to specify the size of ads in two places: your javascript via defineSlot, and in your DFP ad unit definitions. There are ways to kinda add support for responsive ads, but it means your javascript needs to define a list of all the ad sizes you want to allow at which viewport widths. Surely you should be able to set this list when you define the ad units in DFP, so I don’t understand why you need to define them again in your javascript…

So, the solution for DFP going forward is one of these:

  • Keep adding more values to the lists of ad sizes
  • Remove the lists and change the settings so you enter the arbitrary dimensions you want. (Not sure how to migrate existing DFP users to new settings…)

(Neil Lalonde) #88

@broz The plugin has been updated with the new supported ad size in DFP settings, including 300x100.


#89

Getting error: Failed to load resource: the server responded with a status of 400 ()

How to resolve this?


#90

What version of discourse are you using?
What did you do?
Tell us steps to replay.


(Neil Lalonde) #91

400 Bad Request can indicate that your DFP publisher ID is wrong. In your DFP console, go to Admin > Global Settings > All network settings and find the number in “Network code”. Mine is 9 digits long.

Also it could mean the ad size that DFP is trying to serve is larger than the ad unit you’ve defined in your Discourse settings. DFP refuses to serve ads that will be cropped.


(Jeremiah Schultz) #92

Any chance of support in the future for Amazon native ads? They do tend to convert better than banner or text ads.


(Brock) #93

To do responsive properly with JS and defineSlot, can you please provide the following @neil? Thanks in advance!

  1. List of Discourse viewport widths
  2. List of ALL the different URLS where the ads can appear.
    For example, “dfp topic list top code desktop” & “dfp mobile topic list top code” appear at “/” and “/c” (from what I can tell but I’m 100% sure). We need this so we can create “zones” to map our tags in the JS properly.
  • dfp topic list top code
  • dfp mobile topic list top code
  • dfp topic above post stream code
  • dfp mobile topic above post stream code
  • dfp topic above suggested code
  • dfp mobile topic above suggested code
  • dfp post bottom code
  • dfp mobile post bottom code

(Neil Lalonde) #94

@Brock_Busby I think all the widths are in the main mixins.scss file.

All the urls is all the topic list pages. (e.g., /latest, /unread, etc.), and any topic page (/t/topic-slug/123).

I’m curious what you’re going to do to get it working. :thinking:


(Brock) #95

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


#96

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

Status don’t change for Native type blocks…
image


(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) #98

A post was split to a new topic: Global statistics on how the number of pageviews correlate to the earnings from ads shown


Global statistics on how the number of pageviews correlate to the earnings from ads shown
(Neil Lalonde) #100

3 posts were split to a new topic: Plugin install: found a tab character that violate intendation


(Carlo) #101

Hi.
Is it possible to use this plugin for simple html banners ?

Such as:

<a href="affiliate.link"><img src"banner"></a>


(Neil Lalonde) #102

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


#103

A feature request (which I already asked here)

How about adding a feature to auto link keywords in the forum posts? Since I don’t want to add ad banners to keep our forum clean, such links seem to be a really non-intrusive way to monetize.