English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I have a problem with my adsense code. On my HTML page I have some PHP code (a small amount) that has the word "diamonds" in it. Adsense is picking this word up and delivering diamond ads which are not relevant. My site is travel and there is absolutely no other mention of diamonds anywhere else. So the word in the PHP seems to be influencing all ads from Adsense.

Is there some way to fix this, or, is there some code I can use that will make Adsense disregard my PHP code?

2007-02-07 05:47:53 · 2 answers · asked by EEC 1 in Computers & Internet Programming & Design

2 answers

You can implement section targeting on your site to enable the Adsense bot to read only the relevant content of your page and skip that php code that it is currently reading

What you'll do is to put a set of special HTML comment tags to your code. These tags will mark the beginning and end of whichever section(s) you'd like to emphasize or de-emphasize for ad targeting.

You can read about Adsense section targeting here https://www.google.com/adsense/support/bin/answer.py?answer=23168&topic=8441

In my experience, section targeting helps in making sure that Adsense ads are better targeted and relevant to the content

2007-02-07 08:37:45 · answer #1 · answered by imisidro 7 · 0 0

Google will not read php code. It will only see what is sent to the browser. So if you visit the page in the browser and view source that is all google can read.

2007-02-07 07:37:28 · answer #2 · answered by Anonymous · 0 0

fedest.com, questions and answers