Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In my website, I wan't adsense crawler to not consider certain parts of the HTML. Is there any snippet I can use. The reason is I am using a plugin from an external provider and as soon as I installed that plugin, adsense stopped showing relevant ads and started showing ads related to that plugin.

<!--Adsense Should Crawl -->
    My Content
<!--Adsense Should Crawl -->

<!--Adsense Should NOT Crawl -->
    Private Content
<!--Adsense Should NOT Crawl -->
share|improve this question
up vote 5 down vote accepted

You can do this with section targeting:

<!-- google_ad_section_start(weight=ignore) -->
[stuff to ignore here]
<!-- google_ad_section_end -->
share|improve this answer
This is what I was looking for. Thanks! – Sam Jul 22 '11 at 9:21

Google adsense displays adds relevant for the viewer. You maybe seeing different adds from those that your web site users see. One feature I've noticed recently is that after visiting certain web pages, all the adverts on every page I visit suddenly become adverts for that site. So you might be seeing adverts for that plug-in because you visited that plug-in's page, not because of the website content.

Try clearing your browser data including cookies and see if the adverts change. Killing the cookies should remove googles stored data about you and ensure that you only see adverts based on the page content.

share|improve this answer
Yes. I too observed this trend. Its good actually, for the visitors. – Sam Jul 25 '11 at 4:33

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.