Google AdSense Legacy Old Generation Code Reference (Generate and Get) Google AdSense Legacy Vecā Generation Kods Atsauce (Sagatavot un Get)
Google AdSense has implemented new Google AdSense ad code with the new AdSense As Management feature. Google AdSense ir ieviesusi jaunu Google AdSense reklāmu kodu ar jauno AdSense kā pārvaldības funkciju. With the new style of ad code and Manage Ads tab, the configuration settings for an AdSense ad unit such as ad size, colors, and channel settings are stored on Google servers, so that in future, any changes to Google AdSense units can be made from within the account instead of having to modify the ad code. Ar jauno stilu reklāmu kods un Pārvaldīt Reklāmas Cilnē konfigurācijas uzstādījumus AdSense reklāmas vienība, piemēram, ad izmēra, krāsas, kā arī kanālu uzstādījumi tiek glabāti uz Google serveriem, lai nākotnē, kādas izmaiņas Google AdSense vienības var izdarīt no konta, tā vietā, lai mainītu reklāmu kodu.
With the new Google AdSense Ad Management system, the new generation ad code is considerably shorten and simplified. Ar jauno Google AdSense Reklāmas pārvaldības sistēma, jaunās paaudzes reklāmu kodu, ir ievērojami saīsināt un vienkāršota. Gone are the google_ad_format, google_ad_type, google_ad_channel, google_color_border and etc, and been replaced with google_ad_slot, which points to corresponding ad unit as saved in publisher's account. Devusies ir google_ad_format, google_ad_type, google_ad_channel, google_color_border un ETC, un ir aizvietoti ar google_ad_slot, kas norāda uz atbilstošās reklāmu vienību, kā saglabāti izdevēja kontā.
However, the new Google AdSense ad code is not necessary suit all. Tomēr jauno Google AdSense reklāmu kodu nav nepieciešams uzvalks visiem. It's very hard to implement for blogs or websites that adopt the revenue sharing business model, where Google AdSense ad code of different writers and authors are used in rotation. Tas ir ļoti grūti īstenot emuāriem vai tīmekļa vietnēm, kas pieņem ieņēmumu sadali, uzņēmējdarbības modelis, kad Google AdSense reklāmu kodu dažādu rakstnieku un to autori ir izmantoti rotāciju. It's even harder if custom channel ID number is used to track the performance of the ad unit in AdSense revenue sharing program. Tas ir vēl grūtāk, ja kanālu ID numurs tiek lietots, lai izsekotu izpildi reklāmu vienību AdSense ieņēmumu sadales programmu.
The legacy old classic Google AdSense ad code no longer able to be generated from Google AdSense Setup page. Mantotajās veco klasisko Google AdSense reklāmu kodu vairs nevar būt iegūti no Google AdSense Setup page. However, the legacy code is still been supported, and continue to can be used in web pages. Tomēr, mantotajās kods joprojām ir atbalstījusi un turpina var izmantot interneta lapas. For webmasters who still want to use the legacy AdSense ad unit code, use the following guide to generate the ad code manually. Par tīmekļa pārziņiem, kas joprojām vēlas izmantot mantotajās AdSense reklāmu vienības kods, izmantojiet šādas guide ģenerēt reklāmu kodu manuāli.
Format of Legacy Old Google AdSense Ad Code Formāts Legacy Vecā Google AdSense reklāmu kodu
Both text ads, image ads, video ads, and link units use the similar ad code format as below: Gan teksta reklāmas, attēlu reklāmas, video reklāmas, un saite vienības izmantot līdzīgu reklāmu kodu formāts šādi:
<script type=”text/javascript”><!– <script type="text/javascript"> <! --
google_ad_client = “pub-XXXXXXXXXXXXXXXX”; google_ad_client = "pub-XXXXXXXXXXXXXXXX";
google_ad_width = 300; google_ad_width = 300;
google_ad_height = 250; google_ad_height = 250;
google_ad_format = “300×250_as”; google_ad_format = "300 x 250_as";
google_ad_type = “text_image”; google_ad_type = "text_image";
google_alternate_ad_url = “http://www.mydigitallife.info/” google_alternate_ad_url = "http://www.mydigitallife.info/"
//2007-07-25: My Digital Life / / 2007/07/25: Mana Digital Life
google_ad_channel = “XXXXXXXXXX”; google_ad_channel = "XXXXXXXXXX";
google_color_border = “FFFFFF”; google_color_border = "FFFFFF";
google_color_bg = “FFFFFF”; google_color_bg = "FFFFFF";
google_color_link = “0000FF”; google_color_link = "0000FF";
google_color_text = “000000″; google_color_text = "000000";
google_color_url = “005577″; google_color_url = "005577";
//–> / / ->
</script> </ script>
<script type=”text/javascript” <script type = "text / javascript"
src=”http://pagead2.googlesyndication.com/pagead/show_ads.js”> src = "http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script> </ script>
Available Customization Options Using JavaScript Variables Pieejams pielāgošanas iespējas Izmantojot JavaScript Mainīgie
The ad code above should be customized and changed by using different value for JavaScript variables to reflect the AdSense ad unit prefer, here's the brief description of each variables in the ad code. Par reklāmu kodu iepriekš vajadzētu mainīt un mainīt, izmantojot dažādus vērtību JavaScript mainīgie, kas atspoguļo AdSense reklāmas vienība priekšroku, šeit ir īss apraksts par katru mainīgo reklāmu kodu.
google_ad_client - The publisher ID that is required and must be correct to get paid and earn revenue from Google AdSense program when eligible clicks or page views occurred.. google_ad_client - Par publicētāja ID, kas ir nepieciešama, un tiem jābūt pareizi get izmaksāts un gūst ieņēmumus no Google AdSense programmu, ja attaisnoto klikšķu vai lapu apmeklējumu noticis .. The publisher ID can be retrieved from Google AdSense account. Par publicētāja ID var iegūt no Google AdSense kontā.
google_ad_width , google_ad_height , google_ad_format - Define the size and format of AdSense ad unit to display. google_ad_width, google_ad_height, google_ad_format - Noteikt lielumu un formu AdSense reklāmu vienības displeju. All there values should be matching each other, ie the first number before 'x'in google_ad_format is also google_ad_wide, and the second number after 'x' before '_' is the google_ad_height. Visi tur vērtības ir saskaņošanas viens otru, ti, pirmais skaits pirms "x'in google_ad_format ir arī google_ad_wide, un otrais numurs pēc tam, kad" x "pirms" _ "ir google_ad_height. google_ad_height and google_ad_width have no effect on the actual ad size as they only control the object box within which the ad unit is contained. google_ad_height un google_ad_width neietekmē faktisko reklāmas izmēru, jo tās tikai kontrolē objekta kastē, kurā reklāmas vienība ir ietverts. The parameters are used normally to maintain a consistent layout presentation when the page layout provides an area that is wider than the ad unit itself. Parametri, ko izmanto parasti, lai saglabātu vienotu izkārtojumu noformējumu, kad lapas izkārtojumu nodrošina platību, kas ir plašāks par reklāmas vienība pati. Google provides 24 different ad formats (12 ad units and 12 link units) for web page placement. Google nodrošina 24 dažādus reklāmu formātus (12 ad vienības un 12 saite vienības), lai interneta lapu izvietošanas.
Normal Ad Unit: Normal Reklāmas bloks:
728×90_as (Leaderboard) 728 × 90_as (megabanneris)
468×60_as (Banner) 468 × 60_as (Banner)
234×60_as (Half Banner) 234 × 60_as (puse Banner)
125×125_as (Button) 125 × 125_as (poga)
120×600_as (Skyscraper) 120 × 600_as (tornis)
160×600_as (Wide Skyscraper) 160 × 600_as (platais tornis)
180×150_as (Small Rectangle) 180 × 150_as (Mazie Taisnstūris)
120×240_as (Vertical Banner) 120 × 240_as (vertikālā Banner)
200×200_as (Small Square) 200 x 200_as (mazs kvadrāts)
250×250_as (Square) 250 × 250_as (kvadrātveida)
300×250_as (Rectangle) 300 x 250_as (taisnstūris)
336×280_as (Large Rectangle) 336 × 280_as (liels taisnstūris)
Link Unit: Link Unit:
120×90_0ads_al (4 links) 120 × 90_0ads_al (4 saites)
120×90_0ads_al_s (5 links) 120 × 90_0ads_al_s (5 saites)
160×90_0ads_al (4 links) 160 × 90_0ads_al (4 saites)
160×90_0ads_al_s (5 links) 160 × 90_0ads_al_s (5 saites)
180×90_0ads_al (4 links) 180 × 90_0ads_al (4 saites)
180×90_0ads_al_s (5 links) 180 × 90_0ads_al_s (5 saites)
200×90_0ads_al (4 links) 200 x 90_0ads_al (4 saites)
200×90_0ads_al_s (5 links) 200 x 90_0ads_al_s (5 saites)
468×15_0ads_al (4 links) 468 × 15_0ads_al (4 saites)
468×15_0ads_al_s (5 links) 468 × 15_0ads_al_s (5 saites)
728×15_0ads_al (4 links) 728 × 15_0ads_al (4 saites)
728×15_0ads_al_s (5 links) 728 × 15_0ads_al_s (5 saites)
google_ad_type - Definite if only text ads, images ads or both type of ads is allowed. google_ad_type - tiešs, ja tikai teksta reklāmas, attēlu reklāmas, vai abu veidu reklāmas ir atļauta. Note that for Flash based ads and video ads to appear, image ads must be enabled. Atcerieties, ka uz Flash reklāmas, un video reklāmas, attēlu reklāmas, ir jābūt iespējots. Available options are: Pieejamās iespējas ir:
text - for AdSense text ads only teksts - AdSense tikai teksta reklāmas
image - for image ads only, including video ads and Flash ads. attēlu - attēla reklāmas tikai, tostarp video reklāmas un Flash reklāmas.
text_image - for text and image ads text_image - par teksta un attēlu reklāmas
google_alternate_ad_url - Display another ads or web pages when Google AdSense program does not have a relevant advertisement for the ad slot. google_alternate_ad_url - Displejs citā reklāmas vai interneta lapas, kad Google AdSense programma nav būtisks reklamējot ad slota. By default, a public service ad is display. Pēc noklusējuma, sabiedrisko pakalpojumu reklāma displeju. Specifying the alternate ad URL will display the content specified in the URL. Norādot rezerves reklāmu URL būs redzams saturs, kas norādīts URL. Note that the alternative ad code should be specified in HTML file, and should not has size that bigger than the Google ad unit, or else the alternative ad will be cut off or trimmed off. Ievērojiet, ka alternatīvā reklāmu kodu būtu jāprecizē HTML failu, un tas nebūtu ir lielums, kas lielāks nekā Google reklāmas vienība, vai arī alternatīvā reklāma tiks atvienota vai apgrieztām off. It's also possible to put in an alternate URL which will collapse the ad space (no space been used for the ad). Iespējams arī, lai nodrošinātu, aizstājējs URL kas sabrukums reklāmas telpu (no kosmosa tiek izmantota par reklāmu).
google_ad_channel - To specify a custom channel (a 10 digits number) to track ad performance and statistics. google_ad_channel - Lai norādītu pasūtījuma kanāls (10 cipari numuru), lai izsekotu reklāmas veiktspēju un statistika. Channel ID must be created at AdSense account before they can be used. Kanāla ID jārada pēc AdSense kontā, pirms tās var izmantot.
google_color_border , google_color_bg , google_color_link , google_color_text , google_color_url - Determines the color of the ad border, ad background, ad title of each ad, ad text inside the ad block, and URL at bottom of each ad. google_color_border, google_color_bg, google_color_link, google_color_text, google_color_url - noteiktu krāsu ad robežas, ad fons, reklāmas virsraksts katras reklāmas, reklāmas tekstu iekšpusē reklāmas blokā, un URL ir apakšā katrai reklāmu. Up to 4 separate values (differentiated by commas) can be supplied for automatic color rotation when the ad is served by the Google server. Līdz 4 atsevišķas vērtības (diferencētas ar komatiem) var piegādāt automātisku krāsu rotāciju, kad reklāma tiek piegādāts ar Google serveri. The image ads does not affect by these values. Attēlu reklāmas neietekmē ar šīm vērtībām. Note that the color value should be Ievērojiet, ka krāsu vērtībai jābūt converted in hexadecimal format konvertē heksadecimālā formātā . .
IMPORTANT : The page is machine translated and provided "as is" without warranty. SVARĪGI: Šī lapa ir mašīna tulkoto un ar nosacījumu ", kas ir" bez garantijas. Machine translation may be difficult to understand. Machine translation var būt grūti saprast. Please refer to Lūdzu, skatiet original English article oriģināls angļu rakstu whenever possible. kad vien iespējams.
Related Articles Saistītie raksti
- Add and Put AdSense Ads Code and JavaScript to Google Page Creator Website Pievienot un Put AdSense Ads kodeksu un JavaScript, lai Google Page Creator Website
- google_ad_host Host ID in Google AdSense Ad Unit Code and Revenue Sharing google_ad_host Host ID Google AdSense reklāmu komplektam kodekss un ieņēmumu sadali
- Trick to Add AdSense, AdBrite and Other JavaScript Ad Code Directly to Blogger HTML Template Triks Pievienot AdSense, AdBrite un citi JavaScript reklāmu kodu tieši Blogger HTML Template
- Monitor Google AdSense Account With Shock AdSense Monitor Google AdSense konts ar triecienu AdSense
- How to Hide and Collapse Google AdSense Ad Unit Instead of Showing Public Service Ad (PSA) Kā Slēpt un Savērst Google AdSense reklāmas vienība vietā Showing sabiedrisko pakalpojumu reklāmu (PSA)
- Sign Up for Google AdSense Referrals Beta CPA Network with Review Reģistrējieties, lai Google AdSense Pieteikšanās Beta CPA tīklam Review
- AdSense Login to Update to Google Account AdSense Ieiet Update Google Account
- How to Reset AdSense Password Not Associated with Google Account Kā Reset AdSense parole nav saistīta ar Google Account
- Add and Insert to Put Google AdSense Ads Units Between Blog Posts in Blogger.com Pievienot un Ielikt Lai Google AdSense Ads Units Between Blog Amati Blogger.com
- Change to ads about Feature in Google Adsense Ads Mainīt uz reklāmām par Feature Google Adsense reklāmas










































January 19th, 2009 01:50 Janvāris 19, 2009 01:50
[...] publisher using classic legacy Google AdSense ad code, add a new JavaScript variable named google_alternate_ad_url to the Google AdSense ad unit ad code [...] [...] Izdevējs izmantojot klasiskās mantojums Google AdSense reklāmu kodu, pievienot jaunu JavaScript mainīgais nosaukts google_alternate_ad_url uz Google AdSense reklāmas vienība reklāmu kodu [...]