Forum Moderators: martinibuster

Message Too Old, No Replies

Google adsense for Search

code validation

         

The_Hat

6:00 pm on May 9, 2008 (gmt 0)

10+ Year Member



So, I have this really sharp looking new site (a redesign of an old site) that validates and I wanted to use google adsense for search.. (some of you might know where this is going).. once I put the adsense code on my pages they no longer validate.. seems there are some validation problems within the adsense for search code. I would love to make it validate, and I know the the tos says "copy and paste as is" but I was just wondering if anybody out there has had any experiences with making the code valid and any repercusions with Google.. or if they had contacted google about it and were given a green light..

farmboy

6:04 pm on May 9, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



...I was just wondering if anybody out there has had any experiences with making the code valid and any repercusions with Google.. or if they had contacted google about it and were given a green light..

No experience...but...if I had to decide between staying in compliance with the AdSense TOS or worrying whether my code validates....well...that would be a very easy decision for me.

FarmBoy

StoutFiles

6:48 pm on May 9, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'd just look for a work around instead of changing the code.

Usually the problem with the code is conflicting javascript...try putting the search code on a standalone page and iframing it.

BigDave

6:57 pm on May 9, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Validation is a tool to find problems. Validation as a goal is just and ego thing, it doesn't actually make your pages work any better.

I'll take a working page and a Google check every time over a page that validates.

The_Hat

9:06 pm on May 10, 2008 (gmt 0)

10+ Year Member



Thanks StoutFiles for the reply, I had thought about iframing it but I really and truly dislike iframes.. The problems in the code are actually how the options in the form were coded not a javascript conflict..

To all the other replies.. it's an easy choice for me as well...I would have only made modification to the code if I could find overwhelming evidence the goog would be cool with it.. ego thing?.. you bet.. in addition to being a revenue stream the site is going to be a portfolio piece as well.. so when I have a button on the page (yes, out of the way and subtle) that pushes the url to a validator I want everything to be right..

FYI, what I decided to do is grab the page title and page url via php and pass those to a page about my websites valid code to make a few declarations about it before putting that url/title back into a link off to the validation page. The visitor can still validate the page they were asking about but not before I can say "my page validates, but third party code might not".

chocorol

11:34 pm on May 10, 2008 (gmt 0)

10+ Year Member



you know, I had excactly th same problem as you... what I decided to do was to use google coop. Coop lets you customize your search box and you can link it with you adsense account so that you can earn revenue from the ads on the SERP's.

Actually I don't know why people is still using adsense for search considering the limitations it has..

[google.com...]

farmboy

12:57 am on May 11, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I considered Google coop, but as someone pointed out, if you create a search engine that provides what people are looking for and cuts out the garbage, people would tend to have less reason to click on the ads.

FarmBoy

iridiax

1:57 am on May 11, 2008 (gmt 0)

10+ Year Member



The new improved Adsense for search code validates on my site (XHTML 1.0 Transitional). Try regenerating your code with Adsense Setup.