Google Community
Latest Forums Rules Resources
Custom Search

Go Back   Google Community > Google Forums > Google AdWords & AdSense Forum

GoogleCommunity Sponsor
Cirtex Hosting
Use coupon "forum" for 50% Off!

Reply
 
LinkBack Thread Tools Display Modes
Old 05-28-2005, 08:01 PM   #1 (permalink)
Noogle
 
Join Date: May 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
sozer
adsense code

i saw adsense code on some sites as

google_ad_output = 'js';
function google_ad_request_done(google_ads)
{
...
}


when changed google_ad_client variable to my client id, code doesn't work. what is wrong ?
sozer is offline   Reply With Quote
 
Sponsored Links
Old 05-28-2005, 10:19 PM   #2 (permalink)
Google Guru
 
intelliot's Avatar
 
Join Date: May 2004
Posts: 2,527
Thanks: 15
Thanked 49 Times in 28 Posts
intelliot has disabled reputation
What AdSense code is that? You can only use the code generated by the official AdSense website.
intelliot is offline   Reply With Quote
Old 05-29-2005, 07:54 AM   #3 (permalink)
Noogle
 
Join Date: May 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
sozer
This code

<script language="JavaScript">
<!--
//-------------------------------------------------
function google_ad_request_done(google_ads) {
if (google_ads.length < 1 ) return;
var colspana = (google_ads.length<3)?3:google_ads.length;
if(google_ads.length < 3 ) document.write("<form method='get' action='http://www.google.com/custom' target='_blank'>");
document.write("<table cellpadding='0' cellspacing='0' BORDER=0 style='width:778px;background-color:#ffffff;border-style:solid;border-width:1px;border-color:#000000;'>");
document.write("<tr><td align='left' style='padding: 2 2 2 2;background-color:#E9E9E9;border-style:solid;border-width:0 0 1 0;border-color:#000000;' colspan='"+colspana+"'>");
if (google_info.feedback_url) {
document.write("Ads by Google");
} else {
document.write("Ads By Google");
}
document.write("<><><tr>");
if (google_ads[0].type == 'text') {
for(i = 0; i < google_ads.length; ++i) {
document.write("<td nowrap style='padding:2 2 2 2;cursorointer;cursor:hand;'>" +
"<table width='100%' height='100%' bgcolor='#F4FAFF' style='border: 1px solid #000000; padding:3 3 3 3;' cellspacing='0' cellpadding='0'>"+
"<tr><td id='taw"+i+"' onFocus=\"ss('go to "+google_ads[i].visible_url+"')\" onMouseOver=\"ss('go to "+google_ads[i].visible_url+"')\" "+
"onMouseOut=\"cs()\" onClick=\"ga(this,event)\"><a id='aw"+i+"' target='_top' style='font-weight:bold;font-family:Tahoma; font-size:12px;"+
"color:#0000FF;' href='" + google_ads[i].url + "'>" +
google_ads[i].line1 + "</a>
" +
"<div style='font-family:Tahoma; font-size:11px; color:#000000;'>"+google_ads[i].line2 + "
" +
google_ads[i].line3 + "
</div>" +
"<a style='font-family:Tahoma; font-size:11px; color:green;' href='" + google_ads[i].url + "' >" +
google_ads[i].visible_url +
"</a><><></table><>");
}
if(google_ads.length < 3 ){
document.write("<td nowrap align='center' style='padding:2 2 2 2;'>"+
"<table bgcolor='#ffffff' width='100%' height='' cellspacing='0' cellpadding='0' style='border: 1px solid #000000; padding:3 3 3 3;'>"+
"<tr><td>"+
"<table bgcolor='#ffffff' width='100%' height='100%' cellspacing='0' cellpadding='0'>"+
"<tr><td>"+
"<table bgcolor='#ffffff' border='0' cellspacing='0' cellpadding='0' align='center'>"+
"<tr><td width='80'>"+
"<a target='_blank' href='http://www.google.com/'>"+
"</img></a><>"+
"<td><input type='text' name='q' size='21' maxlength='255' value=''></input><>"+
"<td width='80' align='right'><input type='image' src='/icons/100ws/searchbut.gif' name='sa' value='Search'></input>"+
"<input type='hidden' name='client' value='pub-3460518834604685'></input>"+
"<input type='hidden' name='forid' value='1'></input>"+
"<input type='hidden' name='channel' value='0974414919'></input>"+
"<input type='hidden' name='ie' value='ISO-8859-1'></input>"+
"<input type='hidden' name='oe' value='ISO-8859-1'></input>"+
"<input type='hidden' name='cof' value='GALT:#008000;GL:1;:#336699;VLC:663399;AH:ce nter;BGC:FFFFFF;LBGC:336699;ALC:0000FF;LC:0000FF;T :000000;GFNT:0000FF;GIMP:0000FF;FORID:1;'></input>"+
"<input type='hidden' name='hl' value='en'></input>"+
"<><></table>"+
"<><><tr><td valign='bottom' align='right'>[img]/icons/100ws/powered.gif[/img]</img><><></table>"+
"<><></table>"+
"<>");
}
document.write("<>");
}
if (google_ads[0].type == 'image') {
document.write("<tr><td align='center'>" +
"<a href='" + google_ads[0].url + "'style='text-decoration: none'>" +
"<img src='" + google_ads[0].image_url +
"' height='" + google_ads[0].height +
"' width='" + google_ads[0].width +
"' border='0'></a><><>");
}
document.write ("</table>");
if(google_ads.length < 3 ) document.write ("</form>");
}
//-------------------------------------------------
function ss(w,id) {window.status = w;return true;}
//-------------------------------------------------
function cs(){window.status='';}
//-------------------------------------------------
function ca(a) {top.location.href=document.getElementById(a).href ;}
//-------------------------------------------------
function ga(o,e) {if (document.getElementById) {a=o.id.substring(1);p = "";r = "";g = e.target;if (g) {t = g.id;f = g.parentNode;if (f) {p = f.id;h = f.parentNode;if (h)r = h.id;}}else {h = e.srcElement;f = h.parentNode;if (f) p = f.id;t = h.id;}if (t==a || p==a || r==a)return true;top.location.href=document.getElementById(a). href;}}
//-------------------------------------------------
window.onload = check_banner;
-->
</script>
<script language="JavaScript">
<!--
google_ad_client = "pub-3460518834604685";
google_ad_channel ="7355677264";
google_ad_output = "js";
google_max_num_ads = 4;
google_safe = "high";
google_feedback = "on";
google_ad_type = "text_image";
google_color_line = "ff0000";
-->
</script>
<script language="JavaScript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<noscript>


</noscript>
sozer is offline   Reply With Quote
Old 06-17-2005, 11:42 AM   #4 (permalink)
Googler
 
Join Date: May 2005
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
auhlrich
where did you get this code?!?
auhlrich is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert Adsense Code to RSS lukman143 Google AdWords & AdSense Forum 2 10-11-2006 08:38 PM
Put Google Adsense code devang Google AdWords & AdSense Forum 2 08-11-2006 05:53 AM
Can I put adsense code in a javascript include? eelsource Google AdWords & AdSense Forum 2 12-18-2005 07:16 AM
Can I have more than one website on one adsense code? Yvezzx Google AdWords & AdSense Forum 4 07-31-2005 01:55 PM
How To Add Adsense Code To Each Thread clubafrika Google AdWords & AdSense Forum 1 03-12-2005 01:41 AM


All times are GMT -8. The time now is 05:50 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© 2004–2007 Google Community