Social Networks

Are you using the great Thesis theme and looking for targeting Google Ads the you are at right place. What this does is it tells the adsense bot to ignore everything other than the post content which really is the meat of the blog. And the Adsense bot is intelligent enough to override section targeting if it wishes so you don’t lose a thing like the blog title and SEO etc. focused on Adsense targeting.

Adsense Section Targeting

Section targeting is an adsense approved method of telling the ad serving algorithm which parts of your websites to pay attention to and which parts to ignore. Because blogs sometimes have a lot of extraneous info, non essential keywords, or low profit keywords on them, Adsense isn’t always as profitable as it could be. However by telling Adsense to use only the contents of the post for determining which ads to show AND (that’s a big and) putting the ads in that section, you usually get the combination of on target ads that are going to generate the most profit.

It goes at the end of the custom_functions.php file in Thesis theme. Here’s the new code I use.

//adsense targeting functions
function open_adsense_targeting()
{
?>
<!-- google_ad_section_end -->
<!-- google_ad_section_start -->
<?php
}

function close_adsense_targeting()
{
?>
<!-- google_ad_section_end -->
<!-- google_ad_section_start(weight=ignore) -->
<?php
}

function ignore_adsense_targeting()
{
?>
<!-- google_ad_section_start(weight=ignore) -->
<?php
}

function end_adsense_targeting()
{
?>
<!-- google_ad_section_end -->
<?php
}

add_action('thesis_hook_before_html', 'ignore_adsense_targeting','10');
add_action('thesis_hook_before_header','open_adsense_targeting','9' );
add_action('thesis_hook_after_header','close_adsense_targeting','8' );
add_action('thesis_hook_before_headline','open_adsense_targeting','10' );
add_action('thesis_hook_after_post', 'close_adsense_targeting','10');
add_action('thesis_hook_after_html', 'end_adsense_targeting','10');
  1. Halisi Vinson says:

    Your post ends with “this is the code that I use” and then there’s no code… am I looking with my feet? 😀

Leave a Reply

Your email address will not be published. Required fields are marked *

Allowed Tags:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>