|
||||||||||
|
|
#1 (permalink) |
|
Noogle
![]() Join Date: May 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
![]() |
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 ? |
|
|
|
|
Sponsored Links
|
|
|
|
#3 (permalink) |
|
Noogle
![]() Join Date: May 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
![]() |
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;cursor "<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> |
|
|
|
|
|
#5 (permalink) |
|
Noogle
![]() Join Date: Dec 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
![]() |
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.
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |