Plugin Directory

Easy AdSense

Easy AdSense manages all aspects of AdSense: insert ads into posts and sidebar, and add a Google Search box. Easiest and most complete AdSense Plugin!

Why do I get a "Plugin does not have valid header" error?

This seems to be a problem with some WordPress installations. I have never been able to reproduce this error on any of my installations. I have found this on the web though.

What are the different versions of the plugin?

Easy AdSense is the freely distributed version of a premium plugin. The Pro version gives you more benefits -- lets you activate a filter to ensure that your ads show only on those pages that seem to comply with Google AdSense policies. It also lets you specify a list of computers where your ads will not be shown, in order to prevent accidental clicks on your own ads -- one of the main reasons AdSense bans you. These features will minimize your chance of getting banned. The Pro version costs $4.95, and is appropriate if you expect to make more than $100 of ad revenue from your site.

Note that support is not included. Each support question (for both the Lite and Pro versions) will be charged at $0.95. The same charges will apply for follow-up questions as well. In other words, support pricing is on a per-question basis, not a per-issue basis.

The new placement option for lead-in adsense block in the header doesn't work the way I like. Can you fix it?

Short answer: No, I couldn't figure out how to do it better.

Long answer: This option works by adding an action to a hook in WordPress. I could not find a hook that would get activated right after the <body> tag in the generated HTML, and right after the header image is placed (and before the sidebars are inserted). If you know the hook names, please let me know. Also, if your theme has "side" bars near the header and footer (north and south sidebars), there may be conflicts between add_action hooks resulting in unexpected behavior.

Note that the Below Header and End of Page options are hacks that may not be compatible with the WordPress default widget for Recent Posts or anything else that may use DB queries or loops. If you have problems with your sidebars and/or font sizes, please choose some other Position option.

I get the error "Error locating or loading the defaults! Ensure 'defaults.php' exists, or reinstall the plugin." What to do?

Please copy all the files in the zip archive to your plugin directory. The zip archive easy-adsense-lite.?.??.zip contains the directories easy-adsense-lite and easy-adsense-lite/lang. You need all the files in the easy-adsense directory. One of these files is the missing defaults.php. The lang directory, on the other hand, is optional and is meant for international users.

How can I control the appearance of the adsense using CSS?

All <div>s that Easy AdSense creates have the class attribute adsense. Furthermore, they have class attributes like adsense-leadin, adsense-midtext, adsense-leadout, adsense-widget and adsense-lu depending on the type. You can set the style for these classes in your theme style.css to control their appearance.

Why does my AdSense code disappear when I switch to a new theme?

One of my motivations in writing Easy AdSense was the fact that every time I switched between themes, I had to regenerate the AdSense code to match my new colors. Since I often switched back to the original theme (when I would have to regenerate the code again), I wanted to keep the AdSense code per theme in my database. Now, with Easy AdSense activated, I can switch among my themes without worrying about the AdSense color mismatch. This is what I meant when I said, "Remembers AdSense code and your options by theme, so that you don't have to re-enter them if you play with multiple themes. [This feature provides a solution to Google's unwillingness to let you modify and customize the AdSense code -- you just store all the code variants in your blog database.]" as the most important feature of Easy AdSense.

But this unfortunately means that you do have to set the code once whenever you switch to a new theme. I suppose I could have checked your database for some other AdSense code and presented it as defaults, but such complex logic usually results in less robust programs, and pain and suffering down the road.

Can I control how the adsense blocks are formatted in each page?

Yes! Now, in V2.1+, you more options [through custom fields] to control adsense blocks in individual posts/pages. Add custom fields with keys like adsense-top, adsense-middle, adsense-bottom, adsense-widget, adsense-search and with values like left, right, center or no to have control how the Google adsense blocks show up in each post or page. The value "no" suppresses all AdSense ad blocks in the post or page.

I find this *easy* plugin too complex with too many options. Any alternatives?

If you feel that the features of Easy AdSense are a bit too much, consider my lean and mean AdSense plugin AdSense Now!

I just upgraded to WordPress version 2.8. My widget is gone and I'm mad. What gives?

WP2.8 uses a different widget API. Easy AdSense is compatible with it. Just go to your widget page, and drag and drop it again in the sidebar of your choice at the right point. Fret not, your settings and AdSense code are safely saved (per theme), and you don't have to cut and paste those details again.

I just activated the plugin. How come I don't see any ads in my blog?

Note that you have to generate your adsense code from Google, and paste the entire code in the text boxes, replacing the existing text. There are three main text boxes corresponding to three ad locations - Lead-in, Mid-text and Lead-out. If you don't want to use a particular location, please suppress it by selecting the appropriate option. Otherwise, the plugin will show a red box indicating where you ad would be shown.

If you just created the new Google AdSense code, it may not be active yet. Google takes about ten minutes or so before serving ads. Please try again later.

I am having a difficult time getting the middle of post ads to show. They show in some posts, but not all of them. Any possible recommendations?

The middle ads are designed to show up only on long posts (of more than 20 paragraphs). Use the option to force the mid-text ads (in v1.82+) to override this length check.

How do I report a bug or ask a question?

Easy AdSense now uses a paid support model. Each support question question is now sent along with a payment of $0.95 via a PayPal interface.

Requires: 2.6 or higher
Compatible up to: 3.3.2
Last Updated: 2012-5-24
Downloads: 53,945

Average Rating

3 stars
(20 ratings)

Support

0 of 1 support threads in the last three weeks have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

1 person says it works.
0 people say it's broken.

100,1,1
50,2,1 100,1,1 100,2,2
57,7,4
80,5,4 100,1,1 100,1,1 100,1,1 100,1,1
100,1,1 100,1,1