[nodebb-plugin-google-adsense] Google Adsense



  • Adsense plugin to show ads on different positions of your forum.
    So far you can choose from:

    • Header;
    • Footer;
    • Inside first post (top, bottom, left and right positions).

    #Install#
    npm install nodebb-plugin-google-adsense

    More info on GitHub

    #Screenshot#
    Example.png



  • @dove

    If the plugin weekend competition was still going on, you'd have won. Thank you



  • Within a post, can it show more than 1 ad? For example, if I have a very long post, can it place an ad at the top-left or top-right, and another one at the bottom of the post?

    Is this for Google AdSense code only, or will it accept any ad code?



  • @planner said:

    @dove

    If the plugin weekend competition was still going on, you'd have won. Thank you

    No problems, had a couple of free hours today, so decided to make something 😉

    @planner said:

    Within a post, can it show more than 1 ad? For example, if I have a very long post, can it place an ad at the top-left or top-right, and another won at the bottom of the post?

    Is this for Google AdSense code only, or will it accept any ad code?

    So far no, it can only show 1 ad inside post, but of course it can be improved and I will remember your suggestion when I update this plugin.
    And it is for Adsense only



  • Ok, so it's just for AdSense.

    Are you able to modify it so that any ad code can be copied and into a box in the ACP.



  • @dove
    If you have the time to make it a comprehensive ad plugin, here are a few suggestions:

    • In the ACP, provide Location boxes for ads such that ad codes can be copied there.

    • Locations could be for header, footer, left of post, right of post, middle of post, bottom of post, etc.



  • @planner

    @planner said:

    @dove
    If you have the time to make it a comprehensive ad plugin, here are a few suggestions:

    • In the ACP, provide Location boxes for ads such that ad codes can be copies there.

    • Locations could be for header, footer, left of post, right of post, middle of post, bottom of post, etc.

    Sure I might find some free time next week and make it



  • @dove

    Great, looking forward to it.


  • Admin

    @dove Awesome work! We have our own, although it is horribly outdated -- glad you took up the effort to make your own 🙂



  • Wondering what the ACP page for this plugin looks like, here's a screenshot.

    NodeBBplugin.png


  • Admin

    Thanks @planner -- I think we can safely deprecate the original adsense plugin by @psychobunny 🙂



  • @julian

    Is that how much confidence you have in @psychobunny? If I were him, I'd come after you or just send the major of Toronto to pay you a visit.

    But seriously, this is a very good plugin. It just needs to be made generic, so it can handle any display ad provider.



  • @dove,

    So I installed the plugin, but have not specified my Google AdSense id or any specific ad id in the ACP. But that didn't stop Google Ads from showing at the end of every post on my site. Image below. I'm assuming the ads are running with your AdSense id. That right?

    NodeBBad.png



  • Now the ads stopped showing, only showing the default ad I mentioned in the post above. Buggy?



  • @planner I noticed it now, there was wrong letter in if case check, so it shows ad in post even if disabled. But the most strange part is that google shows ads even without publisher ID and campagn ID specified, so I wonder who gets money for click ? Probably Google 😄
    Will update it sometime today.



  • But the most strange part is that google shows ads even without publisher ID and campagn ID specified, so I wonder who gets money for click ? Probably Google

    @dove

    Yeah, I was wondering about that too. I checked the code and I did not see any publisher ID in it. The Evil Empire has to make money any way it can.

    One other thing you might want to take a look at: My ads stopped showing and now only shows the default ads from Google, even with my publisher ID specified. The most VIP thing to do, of course, would be to make it possible to use generic ad codes in there.


  • Admin

    Nice work @dove 😉 totally destroyed my original plugin 😛 but this is good, one less plugin for me to have to update for 0.4x 😸

    I think a lot of people would find this useful. Thanks! 🙂



  • Had a few free mins again, so updated plugin.

    • Fixed bug when ad in post was displayed even if disabled in admin panel;
    • Made responsive height ad in post when enabled left or right position. For a short post ad will be 250x250 size, and for large post it will auto resize vertically to max of 600px.


  • @psychobunny said:

    Nice work @dove 😉 totally destroyed my original plugin 😛 but this is good, one less plugin for me to have to update for 0.4x 😸

    I think a lot of people would find this useful. Thanks! 🙂

    Haha, I saw your plugin, but I also saw this message "This plugin has been superceded by NodeBB's Widgets System, available as of v0.4.x.", so I thought that your probably won't update it any more 😄



  • @dove

    Awesome and thank you very much. Looking forward to the next feature upgrade - making it ad provider agnostic


Log in to reply
 


Star

Looks like your connection to NodeBB was lost, please wait while we try to reconnect.