Google Community Chat
 
adsense code

You're visiting Google Community as a guest.
In order to post, you'll need to register and log in.



(If you were registered and logged in, these advertisements wouldn't be here)
Post new topic   Reply to topic    Google Community Forum Index // Google AdWords & AdSense Forum
   
Author Message
sozer
Noogle
Noogle


Joined: 28 May 2005

148.75 GC$

Items

PostPosted: Sat May 28, 2005 8:01 pm    Post subject: adsense code Reply with quote
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 ?
Back to top
View user's profile Send private message
intelliot
Site Admin


Joined: 01 May 2004

18653.45 GC$

Items

PostPosted: Sat May 28, 2005 10:19 pm    Post subject: Reply with quote
What AdSense code is that? You can only use the code generated by the official AdSense website.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
sozer
Noogle
Noogle


Joined: 28 May 2005

148.75 GC$

Items

PostPosted: Sun May 29, 2005 7:54 am    Post subject: Reply with quote
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("<a href='" + google_info.feedback_url +"' style='color:#333333;font-family:Tahoma;font-size: 9px; padding-left:6px; text-decoration:none;'>Ads by Google</a>");
} else {
document.write("Ads By Google");
}
document.write("</td></tr><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;cursor:pointer;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><br>" +
"<div style='font-family:Tahoma; font-size:11px; color:#000000;'>"+google_ads[i].line2 + "<br>" +
google_ads[i].line3 + "<br></div>" +
"<a style='font-family:Tahoma; font-size:11px; color:green;' href='" + google_ads[i].url + "' >" +
google_ads[i].visible_url +
"</a></td></tr></table></td>");
}
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 src='http://www.google.com/logos/Logo_25wht.gif' border='0' alt='Google' align='middle'></img></a></td>"+
"<td><input type='text' name='q' size='21' maxlength='255' value=''></input></td>"+
"<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;DIV:#336699;VLC:663399;AH:center;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>"+
"</td></tr></table>"+
"</td></tr><tr><td valign='bottom' align='right'><img src='/icons/100ws/powered.gif' border='0' alt='Search'></img></td></tr></table>"+
"</td></tr></table>"+
"</td>");
}
document.write("</tr>");
}
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></td></tr>");
}
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>
<img height=1 width=1 border=0 src="http://pagead2.googlesyndication.com/pagead/imp.gif?client=pub-3460518834604685&event=noscript"/><br />
</noscript>
Back to top
View user's profile Send private message
auhlrich
Googler
Googler


Joined: 04 May 2005

2177.05 GC$

Items

PostPosted: Fri Jun 17, 2005 11:42 am    Post subject: Reply with quote
where did you get this code?!?
_________________
Get 10 X more MONEY:
http://freetoppayingkeywords.blogspot.com
http://hightrafficsecrets.blogspot.com
Back to top
View user's profile Send private message
Sponsored Links
Posted: 5 Dec 2008 4:29 am    Post subject: Advertisements
Back to top
Post new topic   Reply to topic    Google Community Forum Index // Google AdWords & AdSense Forum All times are GMT - 8 Hours
Page 1 of 1


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Host your free forums with Invision Plus.net forum web hosting with your own subdomain.

alexisBlue v1.2 // Theme Created By: Andrew Charron // Icons in Part By: Travis Carden

© 2005-2006 Google Community

Powered by phpBB

Privacy Policy | Contact Us

Powered by Google Search blog

This website is not affiliated in any way with Google, Inc.
Google™ is a registered trademark of Google, Inc.