Welcome to WebmasterWorld Guest from 54.159.30.26

Forum Moderators: incrediBILL & martinibuster

Message Too Old, No Replies

Google adsense for Search

code validation

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

Full Member

10+ Year Member

joined:Mar 8, 2003
posts:234
votes: 0


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..
6:04 pm on May 9, 2008 (gmt 0)

Senior Member

WebmasterWorld Senior Member farmboy is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Nov 6, 2005
posts:2835
votes: 31


...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

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

Senior Member

WebmasterWorld Senior Member 5+ Year Member

joined:May 6, 2008
posts:2011
votes: 0


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.

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

Senior Member

WebmasterWorld Senior Member bigdave is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Nov 19, 2002
posts:3454
votes: 0


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.

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

Full Member

10+ Year Member

joined:Mar 8, 2003
posts:234
votes: 0


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".

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

Junior Member

10+ Year Member

joined:Jan 26, 2006
posts:197
votes: 0


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...]

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

Senior Member

WebmasterWorld Senior Member farmboy is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Nov 6, 2005
posts:2835
votes: 31


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

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

Junior Member

10+ Year Member

joined:July 18, 2006
posts:161
votes: 0


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