Google Adsense block

Blocks ::: block_google_adsense
Maintained by Marcus Green
This plugin is no longer maintained, and will receive no future support. An updated version of Gennaro Varriale's Google Adsense block to work with Moodle 2.x. It allows the easy creation and display of Google Adsense blocks within Moodle.
Latest release:
10 sites
15 downloads
14 fans
Current versions available: 2

You enter your Google Adsense publisher id, select a format for the ads and check the ads are showing. Don't forget to disable any adblocker you might have running when testing.

Screenshots

Screenshot #0

Contributors

Marcus Green (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Comments

  • Anand Khatri
    Tue, 29 Apr 2014, 12:27 AM
    Hello everyone,
    I understand this plugin is tested up to 2.4 moodle version.

    I tried installing Google adsense plugin on Moodle 2.6.2 latest version, on Ubuntu 14.04, 32 bit server. The installation goes smooth, just a warning that its a Beta release. But if I go to this path: Home / ► Site administration / ► Plugins / ► Blocks / ► Manage blocks
    It shows as google adsense block is added. But when I try to add such a block on any page... the block does not appear. Where as the number of instance count on the above page increases.

    Can anyone help in resolving this?
    Is dev team working to upgrade this plugin?
    Or do I have to drop my plan to use this with current version of moodle?

    Thanks in advance,
    Prof Anand Khatri
  • Marcus Green
    Tue, 29 Apr 2014, 12:46 AM
    I have just installed on a fresh copy of Moodle 2.6.1+ (Build: 20140228). In the Add a Block menu it appears in the list as AdSense Google. Is that not appearing in your list?
  • Anand Khatri
    Tue, 29 Apr 2014, 2:02 PM
    Dear Mr. Marcus Green,
    Thanks for replying immediately.
    If I login as admin, Site administration->Front Page -> Front Page settings. And here I "Turn ON" Blocks editing. I have "Add Block" widget appearing below Site administration menu. If I click on "Add blcok" button, I get menu to add so many different blocks etc... within that I do get "google adsense" option.

    If I choose that, page just refreshes, but no "google adsense block" gets added !!

    Even if I repeat multiple times, it does not work. Whereas, the number of instance count for "google adsense block" on the " Home / ► Site administration / ► Plugins / ► Blocks / ► Manage blocks" page increases.
    Hope this gives you clarity.

    Thanks Again.
    Warm regards,
    Prof Anand Khatri
    khatrianand@hotmail.com
  • Marcus Green
    Tue, 29 Apr 2014, 3:13 PM
    What theme are you using and what browser are you using?
  • Anand Khatri
    Wed, 30 Apr 2014, 12:09 AM
    Hi,
    I was using "Clean" theme. I even tried using "Standard" the default theme... it does not work ( no google adsense" block gets added., no matter which theme I use.

    Thanks,
    Prof Anand Khatri
    khatrianand@hotmail.com
  • Marcus Green
    Fri, 16 May 2014, 11:42 PM
    I'll consider your issue closed now Anand based on our emails and for anyone else, the block seems to work OK with Moodle 2.6x. Marcus
  • Oliver Robbins
    Tue, 7 Apr 2015, 9:54 PM
    I've installed this plugin on my Moodle course. My site shows Google ads, but the issue I am having is that my Google Adsense account is not tracking the impressions and clicks.

    I'm guessing this is a Google Adsense issue, but I thought I'd ask to see if you or anyone else has any suggestions.
  • Marcus Green
    Tue, 7 Apr 2015, 10:09 PM
    I have a memory of it taking a bit of time for Google to catch up with new links, how long is it since you set it up. Also have you done a view/source to check the Javascript is being inserted into the page with your publisher id (and that the publisher id is correct)
  • Oliver Robbins
    Fri, 10 Apr 2015, 9:37 PM
    Marcus, you are correct. After a day or two, my Adsense account began tracking the ads. Thank you!
  • Marcus Green
    Fri, 10 Apr 2015, 9:47 PM
    Thanks for letting me know, hope your Adsense campaign brings you some money smile
  • Gaurav Peters
    Wed, 28 Oct 2015, 7:41 PM
    At first I was unable to see the configuration settings on the plugin->blocks->google adsense, I let Marcus have admin rights and he was able to put an ad on the front page, albeit with his Pub-ID. I'd like to know how to either remove that or at least replace his Pub ID with mine. Any help would be welcome. Do I need to edit a php file or is there someway to fix the fact that I don't see any settings in the settings page.

    PS - I have a similar viewing problem with the browse all users page, but that's another thread/story. I need this adsense sorted out urgently.
  • Alex Manyonde
    Sun, 10 Jan 2016, 5:29 AM
    Dear Mr Green. I have added Google adsense block on 2.9. I have created a publisher id on google. However, after three days no stats are showing in Adsense, even though ads are showing in the block. The account is still showing as pending approval in Adsense - waiting for me to put ad code on my website. Adsense requested me to create an ad for my domain, which I did and got an id. It provide a code to add to my website. In the code I see adsense using a parameter called ad-id. That does not appear on the Moodle Adsence block. Any pointers on the direction I should take to investigate?
  • Alex Manyonde
    Sun, 10 Jan 2016, 5:31 AM
    Dear Mr Green, another question related to Adsense - When screen size changes the block is changing in size, but the ad is remaining the same. the result is that it is spilling over into the content in the middle. How do I make the ad sizes respond to the space available?
  • Marcus Green
    Sun, 10 Jan 2016, 5:58 AM
    Hi Alex, I have not released a version here to work with anything later than Moodle 2.4. I recently experimented with creating a version for later versions of moodle but decided not to pursue any further. I noticed that problem whereby the ad does not resize to the space available and that was one of the reasons I decided not to work any further on it. I suspect you could get a similar benefit from putting code into a plain Moodle HTML block, but I have not experimented with that either.
Please login to post comments