Adsense google search!

intertec

New Member
Messages
946
Reaction score
0
Points
0
hey guys. I came to put adsense Google search into my website. I copied the script and pasted it where I want it. I uploaded the page but it does not work. I'm using dream weaver for more information. Please help!
 

marshian

New Member
Messages
526
Reaction score
9
Points
0
Give us some more info please, where can we find your page? (or just give us your code)
 

intertec

New Member
Messages
946
Reaction score
0
Points
0
This is the code-

<style type="text/css">
@import url(http://www.google.com/cse/api/branding.css);
</style>
<div class="cse-branding-right" style="background-color:#000000;color:#FFFFFF">
<div class="cse-branding-form">
<form action="http://www.google.com/cse" id="cse-search-box">
<div>
<input type="hidden" name="cx" value="partner-pub-2731722031771192:bwhofjsvg3d" />
<input type="hidden" name="ie" value="ISO-8859-1" />
<input type="text" name="q" size="31" />
<input type="submit" name="sa" value="Search" />
</div>
</form>
</div>
<div class="cse-branding-logo">
<img src="http://www.google.com/images/poweredby_transparent/poweredby_000000.gif" alt="Google" />
</div>
<div class="cse-branding-text">
Custom Search
</div>
</div>


Please help!
 
Last edited:

marshian

New Member
Messages
526
Reaction score
9
Points
0
Are you sure this is adsense code? It looks a lot like a custom search engine for your site... It will give you a form with a text field and a submit button (+ 2 hidden fields), an image and some text...
 

Anna

I am just me
Staff member
Messages
11,755
Reaction score
583
Points
113
yes, that would be the code, because adsense for search is basically a custom search engine for your site, I tried myself couple days ago, and it worked at first but then I made a couple changes in settings for adsense and it stopped working, maybe they have probs with the service?
 

Daniel S

New Member
Messages
2,395
Reaction score
0
Points
0
Are you inserting the code in the head or body part of your web page?
 

marshian

New Member
Messages
526
Reaction score
9
Points
0
yes, that would be the code, because adsense for search is basically a custom search engine for your site, I tried myself couple days ago, and it worked at first but then I made a couple changes in settings for adsense and it stopped working, maybe they have probs with the service?

No, AdSense is the service to place ads on your page. (Ads by google)
 

jspcodes

New Member
Messages
60
Reaction score
0
Points
0
Try to correct the results page. i.e there are two parts of the code
1.code that displays search
2.code which displays the results in different page

in the 1 part of code u need to give the second page location correctly, else the search won't work. Ensure that you give proper file name like .html or.php



My site http://jspcodes.elementfx.com is using the same where i list the results in new page called search.php
 

Anna

I am just me
Staff member
Messages
11,755
Reaction score
583
Points
113
No, AdSense is the service to place ads on your page. (Ads by google)

google provide an option to add a search engine to your site that is called AdSense for Search and is a part of the adsense service...

Maybe they have that option outside of AdSense service as well though, but thats how I found the search option at least
 
Last edited:
Top