Your Moodle version

Blocks: Google Adsense block

block_google_adsense
Maintained by Picture of Marcus Green Marcus Green
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.
1k
49
1

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.

Contributors

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

Comments RSS

Show comments
  • Picture of mike doyle
    Tue, Mar 18, 2014, 2:55 AM
    I've installed google_adsense in the blocks directory and it is not showing up in settings under blocks
    can anyone help with this?
  • Picture of Marcus Green
    Tue, Mar 18, 2014, 3:01 AM
    What version of moodle, what folder name under blocks and have you tried turning on full debugging in the admin panel to see if it is generating any error messages
  • Picture of mike doyle
    Tue, Mar 18, 2014, 3:41 AM
    Thanks for your reply.
    How can I look up the version?
    also, how do I turn on full debugging?
    Thanks
  • Picture of mike doyle
    Tue, Mar 18, 2014, 3:43 AM
    google_adsense is the folder name under blocks
  • Picture of Anand Khatri
    Tue, Apr 29, 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
  • Picture of Marcus Green
    Tue, Apr 29, 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?
  • Picture of Anand Khatri
    Tue, Apr 29, 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
  • Picture of Marcus Green
    Tue, Apr 29, 2014, 3:13 PM
    What theme are you using and what browser are you using?
  • Picture of Anand Khatri
    Wed, Apr 30, 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
  • Picture of Marcus Green
    Fri, May 16, 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
  • Picture of Oliver Robbins
    Tue, Apr 7, 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.
  • Picture of Marcus Green
    Tue, Apr 7, 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)
  • Picture of Oliver Robbins
    Fri, Apr 10, 2015, 9:37 PM
    Marcus, you are correct. After a day or two, my Adsense account began tracking the ads. Thank you!
  • Picture of Marcus Green
    Fri, Apr 10, 2015, 9:47 PM
    Thanks for letting me know, hope your Adsense campaign brings you some money smile
1 2 3
Please login to post comments