In some pages we need ads. In others - not. It would be nice to decide it per-node.

Also, removing ads from non-clicked / non-focused pages is reported to actually increase earnings, due to the nature of the new Google Smart Pricing algorithm.

Suggestion: Add a flag to show adsense ads only on certain pages. Add the flag to the node table in order to know on which pages to show ads.

Question: How to do it? In which table can I safely add the flag?

Also, I would love testing it.

Comments

kbahey’s picture

It has to be a separate new table (e.g. node_adsense), which contains the following:

nid int(10) not null,
hide int(1) default 0

The table should be in an .install file with an update function as well.

This info needs a form with yes/no radio button, with the default being NO (do not hide adsense).

If you provide a patch, I can add it to the module.

StuartDH’s picture

You could also do this by putting them in blocks and configuring the block to only show on listed pages.

darren oh’s picture

Status: Active » Closed (fixed)

Or use PHP to insert adds in your nodes.