AdSense Targeting

The Plugin

If you are using Google AdSense to get some earnings from your website, it might make sense to tell Google, what is actually important in your content. Therefore you should place the famous AdSense Tags for better AdSense Targeting. The Plugin AdSense Targeting simply puts all your posts, pages and excerpts between the AdSense Tags and that’s it. You give the Google crawler a hint, what’s important. If you once think that a part of a post or a page is not relevant for advertisement, simply click the AdSense Targeting button in the editor after having selected the text in question. The ignore tags will be wrapped around your text automatically by a short-code.


We were supposed to find a solution for the AdSense Targeting for a customer who works a lot with AdSense. As didn’t find any plugin to do a proper job we just built in the AdSense Targeting into the Ads Easy plugin as it was used anyway. But the the solution that we found for that was not very elegant and we wrote AdSense Targeting as an own plugin.

Current Version

The current version is 1.5.2, comes with a German translation and should work with all Versions of WordPress.

Change Log

1.5.2 WP 4.3 ready
1.5.1 WP 4.2 ready
1.5 WP 4.1 ready
1.4 Bugfix
1.3 Better performance
1.2 Renaming the plugin for the editor because of possible interferences with ad blockers
1.1 Translation and code changes
1.0 Official Release


To install the AdSense Targeting Plugin simply download it here, unzip the file and upload the folder named “adsense-targeting” into the /wp-content/plugins folder of your blog. Once you have done that, simply activate “AdSense Targeting” in your plugin panel and that’s it. Your content will be automatically wrapped between AdSense Tags.


The AdSense Targeting Plugin uses the filters ’start_loop‘ and ‚end_loop‘. So, if you want to display the content or excerpt of a post in another plugin, it is better to start a new loop with a new object WP_Query instead of just displaying posts (i.e. by getting them with the function get_posts()). The text in the plugin get then filtered and the AdSense Tags will appear.


AdSense Targeting
The active button with selected text
AdSense Targeting
The selected text is between the shortcode now
AdSense Targeting
Sourcecode with AdSense Tags



If you use the plugin and like it, we appreciate a donation. If you find the plugin useful and like it very much, we appreciate your feedback even more.


4 Gedanken zu “AdSense Targeting

  1. This is a great Plug In. I have been searching a a way to keep my Ads the same as my content. I was starting to think that there was no such thing. Thank you so much. PLUS This Plug In makes it sooo simple to place the Ads where you want them. Gr8 JOB!

  2. Hi there,

    the only thing I can think of at the moment is some adblocker that you might use in your browser. Did you check that out?

  3. Hi, great plugin…thank you! One problem seems half the sites I use it on it doesn’t show up under settings so I cant adjust anything. Is something conflicting possibly? Same theme and plugins on all sites…same host too 8(..

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert