Google AdSense plugin

(Simeon) #199

Bump: I’m really keen to know if displaying ads by Group instead of Trust Level is something that ever might come to pass…

(Oni Automata) #200

Question, does this plugin generates an ads.txt file ?

(Michael - #201

We are planning on implementing that soon. Please note that you only need an ads.txt file in the root of your domain (i.e. so this only applies when you are hosting your forum on the naked domain.

Is there any way to insert domains/ads.txt in discourse?
(Oni Automata) #202

Thanks. I tested the plugin earlier but i can’t edit my adsense account on the config menu. It says there’s à problem when i try to save this parameter

(Michael - #203

Disable your ad blocking software…

(Oni Automata) #204

Thanks, I didn’t thought Adblock would block this parameter so I didn’t even thought about it being activated.

Best regards

(TheBurningMan) #205

what you mean by naked domain like my discourse forum is -

Ads are disabled here and I have no idea how I can implement this.

On main domain - I submit the ads.txt in root domain still the same problem came and no ads are showing.

Can you please explain it a little.


It looks as though you should be able to ignore it if you already have it in your root domain

In 2017 Google will only crawl and enforce ads.txt files placed on root domains, ignoring files placed on subdomains. Ensure that sellers authorized for your subdomains are included in the ads.txt file you place on your root domain. We are planning to crawl and enforce ads.txt files placed on subdomains beginning some time in early 2018. We will provide further details when this feature is available.

(Frederik L) #207

Is it possible to disable Adsense when your are logged in?

It might force users to login, so ads only visible for non logged in users…

(Bhanu Sharma) #208

You Probably can configure it to the lowest trust level.


Great idea but against google’s Adsense T&C

(Bhanu Sharma) #210

So according to Google’s T&C we can’t decide whom we want to show ads and whom we don’t?


Not quite.

They don’t want you providing a better/cleaner version of your site for pay.

(Bhanu Sharma) #212

Can You Please DM me the relevant link from Google’s Side? I Can’t seem to have notice it! That’d be a real help for me to understand exactly how that works!

(Richard - #213

Please don’t DM it but post the relevant link in this topic so everybody has the information.
I can’t find it in the policy document.
AdSense program policies - AdSense Help?

(Celil Çağlar ÖzlÜ) #214

Hello. I activate the plug in in my site

When click the ad page opens in same window. How can I open the links in new page?

(Michael - #215

Opening ads in a new window is not allowed by Adsense (except in certain countries, but it is never configurable, it’s always decided by Adsense).

Nice ad, by the way :smiley:

(Celil Çağlar ÖzlÜ) #216

thank you for informaiton.

(Jeff Atwood) #217

That ad was so nice I clicked on it 48 times! :wink:

(Robert Brockie) #218

I’ve recently installed this plugin and seem to get getting errors in the Javascript console.

Uncaught TypeError: $(...).size is not a function

which is triggered by:

 function __push() {
    var i = $('.adsense').size();
    var j = $('.adsense .adsbygoogle ins ins').size();

I’m pretty sure I have everything configured properly and I sometimes see ads.