Google Community
Latest Forums Rules Resources
Custom Search

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

GoogleCommunity Sponsor

Reply
 
LinkBack Thread Tools Display Modes
Old 05-28-2005, 09: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, 11:19 PM   #2 (permalink)
Google Guru
 
intelliot's Avatar
 
Join Date: May 2004
Posts: 2,528
Thanks: 15
Thanked 128 Times in 34 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, 08: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, 12:42 PM   #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
Old 12-04-2008, 09:12 PM   #5 (permalink)
Noogle
 
Join Date: Dec 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
navjotjsingh is on a distinguished road
This code is only available to publishers who generate very high number of impressions...such publishers are often referred as Premium Publishers and these publishers also get yearly gifts from Google based on their performance.
navjotjsingh is offline   Reply With Quote
Old 12-06-2008, 06:42 AM   #6 (permalink)
Noogle
 
Join Date: Dec 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
jakesjohn is on a distinguished road
Smile

can u help me the same?....i too have seen in many popular sites....we cant just change the adsense id and use it..it is not working...can anyone please tell me what extra have to be done?
jakesjohn is offline   Reply With Quote
Old 12-12-2008, 10:09 PM   #7 (permalink)
Noogle
 
Join Date: Dec 2008
Posts: 4
Thanks: 0
Thanked 1 Time in 1 Post
Sysbase is on a distinguished road
Wow thats cool.. didn't know there was that much code my adsense code is alot smaller..
Sysbase 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 09:38 PM
Put Google Adsense code devang Google AdWords & AdSense Forum 2 08-11-2006 06:53 AM
Can I put adsense code in a javascript include? eelsource Google AdWords & AdSense Forum 2 12-18-2005 08:16 AM
Can I have more than one website on one adsense code? Yvezzx Google AdWords & AdSense Forum 4 07-31-2005 02:55 PM
How To Add Adsense Code To Each Thread clubafrika Google AdWords & AdSense Forum 1 03-12-2005 02:41 AM


All times are GMT -8. The time now is 04:36 AM.


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