AdSense-Deluxe WordPress Plugin
Introduction
“AdSense-Deluxe is an easy-to-use plugin for WordPress for quickly inserting Google or Yahoo! ads into your blog posts, and managing when and where those ads are displayed. It was developed for my own use after an exhaustive search for a similar tool turned up nothing adequate.
Have you added Google AdSense to your WordPress blog yet? Or maybe thought about it? I was thinking about this last year and knew I could do it generically in the templates, or painfully by pasting the AdSense code into each post I wanted it in, but neither seemed like the optimal way to accomplish my aims. I wanted some flexibility in deciding which posts ads appear in and perhaps some control of which ad format would display in any given blog post.
I found Phil Hord’s AdSense WordPress plugin and gave it a test. It’s simplicity was great and it offered some of the control I thought I wanted while avoiding template changes. Phil’s plugin is configured by pasting your AdSense code into the plugin PHP file, then adding an HTML comment (“<!–adsense–>”) anywhere in a post, then your ads are substituted for the placeholder when the post is served. The plugin operates in the common role of a WordPress filter hook.
Working from Phil’s simple and effective design, I started digging into the basics of WordPress plugin coding to add some of my the items on my wish list. The first item on the list was having a choice in different AdSense code blocks. It would have been trivial to just put all the different blocks into the PHP code and use a bit of conditional logic for choosing among them, but that’s not very nice for anyone not comfortable mucking about in PHP source code. Which led me to discovering that plugins can have their own configuration pages….Cool! :-)
Download: AdSense-Deluxe WordPress Plugin v. 0.8
AdSense-Deluxe Features
- Use simple HTML comments for embedding AdSense or Yahoo! Publisher Network ads in a WordPress post
- Choose from any number of ad styles and format on a post-by-post basis
- Globally change ad styles
- Selectively disable display of individual ad styles or all ads
- Integrated AdSense Preview tool (a sandbox) for seeing what ads will appear on a given page. (Stand-alone AdSense SandBox Tool also available)
- All settings configured through WordPress Options interface (no knowledge of plugins or PHP required)
- Easily test different ad formats and color styles across (all, or) a range of blog posts.
- (Optionally) Apply CSS formatting to the AdSense code.
- Does not display live ads when editing a page, instead placeholders are shown.
- Ads are EXCLUDED from RSS feeds — even if you have full-text feeds enabled. (new in v0.3)
- Preview your ad blocks from the AdSense-Deluxe options page (in case you forget what the ad style looks like), and ads can be clicked without penalty since they use a test account.
- Support for wp-tiger-admin plugin’s CSS in post/page editor QuickTags.
AdSense-Deluxe Advantages and Uses
- Switching all AdSense ads to a new color scheme across the entire site
- Trying out image ads instead of textual ads
- Testing alternate AdSense formats
- Disabling a class of AdSense ads, or even all ads
- Including common formatting for AdSense ad blocks (less typing)
- Testing alternate ad placements for higher click-thru rates
- Controlling ads within your WP template files.”
Read more on the official site »
[Via Acme Technologies Zeitgeist]
