Forum Moderators: martinibuster

Message Too Old, No Replies

Customize the Search button on 'Adsense for Search'?

         

littlegiant

2:11 pm on Aug 5, 2008 (gmt 0)

10+ Year Member



Are we permitted to use CSS to customize the 'Search' button on 'Adsense for Search' units? It seems to me we can since its not actually changing any of the Search box code. Sorry for asking, but I googled this and all the results I'm getting are from 2007 before they came out with the new improved search unit.

Also, yes I know there were some 'separate' program policies applicable to the search unit that you are required to agree to before getting the code but I stupidly just said to myself, 'yeah yeah for sure, no problem' (been with Adsense for over 3 years) and checked that box without actually reading the policies. Now I can't find that page again.

netmeg

2:12 pm on Aug 5, 2008 (gmt 0)

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



I don't think you can modify it.

littlegiant

2:20 pm on Aug 5, 2008 (gmt 0)

10+ Year Member



An extremely popular internet tech support guy (can't say who, WebmasterWorld terms) has a whole page up about this saying that you can use CSS to customize the Adsense search box.

"I don't think you can modify it."

Can you point to something specific in the Adsense program policies that supports this? If you can't modify the search box, no problem. But I just want to be sure.

netmeg

3:39 pm on Aug 5, 2008 (gmt 0)

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



From the AdSense help docs:


Can I modify the AdSense for search code to comply with W3C HTML and XHTML standards?

In general, as specified in our program policies, we don't permit modifications to the AdSense code; however we do allow specific modifications that allow our AdSense for search code to comply with W3C HTML and XHTML standards.

Here are the changes that you'll need to make in order for your code to be compliant:

1. Remove the closing </input> and </image> tags
2. Add an additional closing '/' to the end of the opening html tags for <input> and <image>. This should occur for all 'image' and 'input' tags.

For example, this is an unmodified portion of the AdSense for search code:

<img src="http://www.google.com/logos/Logo_25wht.gif" border="0" alt="Google" align="middle"></img></a>
<input type="hidden" name="oe" value="ISO-8859-1"></input>

This is what the modified version would look like:

<img src="http://www.google.com/logos/Logo_25wht.gif" border="0" alt="Google" align="middle" /></a>
<input type="hidden" name="oe" value="ISO-8859-1" />

Please be sure to modify the search code only as described above, since our program policies do not allow any additional modifications.

Can't get much clearer than that. Search the help docs for modify adsense for search.

wheelie34

3:51 pm on Aug 5, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



So having
input, textarea, select {
font-family: Arial;
font-size: 12px;
color: #ff0000;
background-color: #000000;
}

in your css file changes the 'look' of the Search button, is that ok or not, is there a way of excluding a certain button using css, I looked at the terms and couldn't find anything about css alterations, which doesnt touch their provided code.

EDIT: typo

littlegiant

4:58 pm on Aug 5, 2008 (gmt 0)

10+ Year Member



Netmeg, did you carefully read my launch post? I'm not asking if we can modify the generated 'Adsense for Search' HTML code. I already know that is not allowed. What I'm asking is about using CSS to modify the appearance of the Search button. The original Adsense code would remain completely untouched.

I think you're misreading the highlighted section of the Adsense polices. You're reading it as:

"Please be sure to modify the search BOX only as described above, since our program policies do not allow any additional modifications."

If it said that then yes I would agree that customizing the search box using CSS would not be permitted. But note carefully that it does not refer to modifying the search BOX but rather the search CODE.

Hence:

"Please be sure to modify the search CODE only as described above, since our program policies do not allow any additional modifications."

...has a complete different meaning.

[edited by: littlegiant at 5:05 pm (utc) on Aug. 5, 2008]

ken_b

5:03 pm on Aug 5, 2008 (gmt 0)

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



Ask Google

netmeg

5:14 pm on Aug 5, 2008 (gmt 0)

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



Opps, you're right. Well, you can try asking Google, but as I recall, people have been asking Google that for several years without any answer from them whatsoever, and in the absence of a clear answer, I'd err on the cautious side. It certainly seems that the the spirit of the TOS is that they want to control how it looks, as they do with the ad units.

littlegiant

5:39 pm on Aug 5, 2008 (gmt 0)

10+ Year Member



Okay I've decided to contact Adsense about this. Hopefully I'll get a response. Personally speaking, I've always gotten a response from Adsense although admittedly I haven't asked them that many questions over the years.

wheelie34

5:56 pm on Aug 5, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you get a reply from Google post it so everyone knows please.

ken_b

6:06 pm on Aug 5, 2008 (gmt 0)

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



If you get a reply from Google post it so everyone knows please.

Yes, it would be interesting to know what answer the OP gets.

But... even if the support staff that answers the OPs question says it's ok for the OP to make this change, that doesn't mean the permission would apply to all publishers.

Anyone who wants to change anything outside the "basic" deal should ask support themselves for permission to be sure.

And then hope that the next support person who looks at the site agrees.

Better to stick with the basics in my opinion.

littlegiant

6:39 pm on Aug 5, 2008 (gmt 0)

10+ Year Member



I didn't specify exactly what changes I was going to make and ask them if they would grant me special permission. I asked them exactly what their official position on using CSS to modify the search box was.

And yes I will most definitely post their reply here (although if I recall correctly, we're not permitted to post Adsense Support replies verbatim here so I'll have to paraphrase it a little).

netmeg

7:12 pm on Aug 5, 2008 (gmt 0)

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



I would like nothing better than to be able to change it; I use it extensively on many many sites, and I don't care so much about the search button, but I'd love to be able to make a bigger search box utilizing a bigger font.

littlegiant

6:20 pm on Aug 6, 2008 (gmt 0)

10+ Year Member



I received a reply from Adsense and the answer is YES, we are officially permitted to customize the 'Adsense for Search' box using external CSS. And the way the reply was worded (not permitted to post verbatim), it was quite obvious that it had nothing to do with granting me special permission but rather stating that using CSS to customize the search box currently complies with Adsense policy. So this permission applies to everyone.

netmeg

6:24 pm on Aug 6, 2008 (gmt 0)

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



Hmm, interesting. Thanks for reporting back.

netmeg

6:11 pm on Aug 7, 2008 (gmt 0)

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



Ok, I sent out a request to support around the same time you did, but it took them longer to get back to me than it did to get back to you.

What I was told was basically as long as I didn't mess with the code, the Google branding, or the targeting of the ads, it was permissible to alter the cosmetic appearance of the button and/or box. That means I have to keep the Google in either the background of the box or the button itself.

HOWEVER, my email very specifically stated that this permission was granted only to me and was not to be considered transferable to any other publisher.

So I guess if you want to do it, you should write and get specific permission, and keep the email in perpetuity just in case.

littlegiant

6:48 pm on Aug 7, 2008 (gmt 0)

10+ Year Member



I think a lot depends on how you worded your question. And how you interpreted the reply.

A little off topic but I'm wondering if a moderator would care to comment on exactly why excerpts of emails are strictly forbidden here on WebmasterWorld? Sometimes being able to post an excerpt would clear up a LOT of confusion. Especially in matters like this.

netmeg

6:53 pm on Aug 7, 2008 (gmt 0)

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



The reply was unequivocal, in almost exactly the words I stated above, and I didn't even ask if it was applicable only to me or to everyone, I just asked if it was permissible.

littlegiant

7:11 pm on Aug 7, 2008 (gmt 0)

10+ Year Member



Well my reply was equally assertive in that it had nothing to do with granting me special permission but rather simply what I was asking was compliant with Google Adsense policy. So it seems what we have here is a couple of Adsense support guys who are not at all on the same page.

I might also add that granting special permission on a case by case basis is a very labor intensive approach (and un-Google-like) when you come to think of it. All it's going to do --especially now that it's public that you've apparently been granted special permission-- is spawn a bunch of 'me too' emails sent to Adsense support coming from anyone stumbling across this thread looking also to customize their search box. It doesn't really make sense. What is allowed for one should be allowed for all. That's what rules and regulations are for.

netmeg

7:40 pm on Aug 7, 2008 (gmt 0)

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



I didn't write it; I just reported it.