Skip to main content

A portlet for google adsense

Project description

A Plone3 style portlet to use Google AdSense in a Plone site.


Portlet AdSense allows to easily insert Google AdSense code in a Plone site using a dedicated portlet.

It also provides configuration options to:
use a pre-built Google AdSense slot code customize Ad colors customize PSA behaviour set test mode on


  • zope 2.10.x
  • plone 3.x

Release notes

Tested on Plone 3.1. It should run on any Plone 3.x


Installing without buildout

You can install this package in either your system path packages or in the lib/python directory of your Zope instance. You can do this using either easy_install or via the script.

After installing the package it needs to be registered in your Zope instance. This can be done by putting a collective.portlet.adsense-configure.zcml file in the etc/pakage-includes directory with this content:

<include package="collective.portlet.adsense" />

or, alternatively, you can add that line to the configure.zcml in a package or Product that is already registered.

Installing with buildout

If you are using buildout to manage your instance installing collective.portlet.adsense is even simpler. You can install it by adding it to the eggs line for your instance:

eggs = collective.portlet.adsense
zcml = collective.portlet.adsense

The last line tells buildout to generate a zcml snippet that tells Zope to configure collective.portlet.adsense.

If another package depends on the AdSense portlet egg or includes its zcml directly you do not need to specify anything in the buildout configuration: buildout will detect this automatically.

After updating the configuration you need to run the ‘’bin/buildout’‘, which will take care of updating your system.

Usage notes

AdSense code and Size are always mandatory. AdSense slot code is optional; if an ad sense slot code is used its size and format should match the one choosen in the Size field.

Custom colors will override other choices

Alternate color and Alternate URL fields can be used to customize the Ad space behaviour in the event that Google is unable to serve targeted ads.

Full information on Google AdSense can be found in the Google AdSense documentation:

Known bugs

No known bugs


Portlet AdSense developement by Francesco Merlo - Portlet AdSense contributions by Eleonora Borelli -


See docs/LICENSE.txt

Project details

Release history Release notifications

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for collective.portlet.adsense, version 0.5
Filename, size File type Python version Upload date Hashes
Filename, size collective.portlet.adsense-0.5-py2.4.egg (18.3 kB) File type Egg Python version 2.4 Upload date Hashes View hashes
Filename, size collective.portlet.adsense-0.5.tar.gz (11.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page