Closed (fixed)
Project:
Google AdSense integration
Version:
master
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 May 2006 at 09:00 UTC
Updated:
8 Dec 2006 at 15:29 UTC
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
Comment #1
kbahey commentedIt 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.
Comment #2
StuartDH commentedYou could also do this by putting them in blocks and configuring the block to only show on listed pages.
Comment #3
darren ohOr use PHP to insert adds in your nodes.