Google Adsense Section Targeting in WordPress
Google Adsense introduced the Section Targeting optimization tip. Here I show you how to implement it to show more relevant adsense ads in your WordPress blog.
What is Section Targeting?
Section targeting allows you to suggest sections of your text and HTML content that you’d like us to emphasize or downplay when matching ads to your site’s content. By providing us with your suggestions, you can assist us in improving your ad targeting.
With Section targeting, the adsense publisher can tell Google to emphasize certain part of the web page and thus display more relevant ads.
The HTML tags to emphasize a page section take the following format:
<!– google_ad_section_start –>
<!– google_ad_section_end –>
Read on for Section Targeting implementation in WordPress.
Implement Section Targeting in WordPress
The Section Targeting implementation is easy. Basically, you wrap your WordPress content template tag (the_content(), the_excerpt() ) with the Section Targeting HTML tags.
Example 1:
<!– google_ad_section_start –>
<?php the_content(); ?>
<!– google_ad_section_end –>
Example 2:
<!– google_ad_section_start –>
<?php the_excerpt(); ?>
<!– google_ad_section_end –>
You may need to modify the following files in your template directory for it to take effect to ALL your post content:
- index.php
- single.php
- search.php
- archive.php
Note that it may take up to 2 weeks before Google can updates your site changes. For more information, please refer to Adsense support Section Targeting and implementation.