Some of you maybe be noticed that on my Pinay and Sex related posts, Adsense ads are not displayed, even the free ads from Adsense. You might wonder if it is Google Adsense own feature but it’s not. Actually, it’s the work of the Wordpress plugin that I personally created which I called “No Adsense on Banned Pages”.
Consider examining my Pinay Scandal post.
Adsense ads is supposed to be displayed in between the Post-Title and the Post-Content according to the design of the Wordpress theme that this blog is using. However, the said Wordpress plugin disabled the displaying of the Adsense ads on that post.
Actually, there are few reasons on why I created a Wordpress plugin that functions like that. The following reasons are:
- To increase the Adsense CTR. I’m not really sure if the free ads displayed on pages with banned contents generate Adsense impression. I am still studying it. But if it really generates impression for Adsense then disabling the display of Adsense ads on banned pages will surely decrease the Adsense impressions while increasing its CTR.
- To make use of the users clicks on Adsense ads. Based on my observation (using the data collected by the MyBlogLog, there are many adsense clicks generated on the pages where only the free ads from adsense are being displayed. I’m sure that this clicks are not counted as valid clicks since the ads displayed or the ads that are being clicked are just free and no one is paying for them. Now, with the use of this plugin, there will be no free ads that will be displayed that might received clicks from our visitors. So, the attention of our visitors will now be diverted to our blog’s own links or to other paid ads.
- To minimize the annoyance resulted by the free ads from Adsense. Well. I know that the way the adsense ads displayed on this blog are annoying. However, it is more annoying in my part to see free adsense ads or a blank space on the portion where adsense ads should be displayed. At least with this Wordpress plugin that I created I make sure that no free adsense ads are being displayed on some pages of this blog.
The Wordpress Plugin’s Design
Actually, I was planning to create a Wordpress plugin that automatically search the content of the current post for keywords that would trigger the Adsense system to display free ads. Some called this kind of keywords as “Adsense Banned Terms”. However, I am no programmer. I might have little knowledge on PhP programming for the Wordpress script but it’s not enough to create a plugin based on the mentioned design.
So, I decided to write a Wordpress plugin that do the following functions:
- During the activation of this Wordpress plugin, “POST” table will be added by a column named “Adsense_Status”. This column has a default value of “0″.
- On the Write or Edit option of the Wordpress Admin CP, a form was added that let the admin enter a number “0″ or “1″. When the SAVE or PUBLISH button is clicked, the value of the column “Adsense_Status” of that particular post will be set to the entered value. “0″ means the post doesn’t contain adsense banned terms. “1″ means the post contains adsense banned terms.
- This plugin contains functions that will be called at the Wordpress Theme which will decide whether the Adsense ads will be displayed or not. If the it finds that the value of the column “Adsense_Status” is “0″ (zero) then Adsense Ads will be displayed. Other wise, the Adsense ads will not be displayed.
Wordpress Plugin, Not Released
Currently, I decided not to release this Wordpress Plugin for public use. I am not ready yet to make it available to those who wants to use it. However, if you have knowledge on PHP programming for Wordpress, then you can write your own plugin by making use of the functions and features I mentioned above.
| 2.8 |

SELaplana, 3 July 2008 at 




July 5th, 2008 at 9:07 am
sel may tinatago ka pla knowledge sa php ah!. good luck dude!
July 5th, 2008 at 10:23 am
Gl3nnx >>>
kunti lang po…. hindi ko pa kaya ang magsulat ng mahabang PHP programs