Google AdSense Legacy Old Generation Code Reference (Generate and Get) Google AdSense Old Legacy Generation Mã số tham khảo (Tạo và Nhận)
Google AdSense has implemented new Google AdSense ad code with the new AdSense As Management feature. Google AdSense đã triển khai mã quảng cáo mới của Google AdSense AdSense mới với các tính năng như quản lý. 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. Với phong cách mới của mã quảng cáo và Quản lý các tab Quảng cáo, các thiết lập cấu hình cho một đơn vị quảng cáo AdSense như kích thước quảng cáo, màu sắc, và các thiết lập kênh được lưu trên máy chủ của Google, do đó trong tương lai, bất kỳ thay đổi cho các đơn vị AdSense của Google có thể được thực hiện từ bên trong tài khoản thay vì phải sửa đổi mã quảng cáo.
With the new Google AdSense Ad Management system, the new generation ad code is considerably shorten and simplified. Với hệ thống mới của Google AdSense Quản lý Quảng cáo, một thế hệ mới mã quảng cáo được coi là rút ngắn và đơn giản. 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. Đi là những google_ad_format, google_ad_type, google_ad_channel, google_color_border và vv, và được thay thế bằng google_ad_slot, mà điểm để đơn vị quảng cáo tương ứng như được lưu trong tài khoản của nhà xuất bản.
However, the new Google AdSense ad code is not necessary suit all. Tuy nhiên, Google mới mã quảng cáo AdSense là không cần thiết phù hợp với tất cả. 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. Nó rất khó để thực hiện các blog hay trang web mà thông qua doanh thu chia sẻ mô hình kinh doanh, nơi quảng cáo AdSense của Google mã của các nhà văn và các tác giả khác nhau được sử dụng trong xoay. It's even harder if custom channel ID number is used to track the performance of the ad unit in AdSense revenue sharing program. Nó thậm chí còn khó hơn nếu tùy chỉnh kênh số ID được sử dụng để theo dõi hiệu suất của các đơn vị quảng cáo trong chương trình chia sẻ thu nhập AdSense.
The legacy old classic Google AdSense ad code no longer able to be generated from Google AdSense Setup page. Những di sản cũ cổ điển mã quảng cáo AdSense của Google không còn có thể được tạo ra từ trang Google AdSense Setup. However, the legacy code is still been supported, and continue to can be used in web pages. Tuy nhiên, các mã di sản vẫn còn được hỗ trợ, và tiếp tục có thể được sử dụng trong các trang web. For webmasters who still want to use the legacy AdSense ad unit code, use the following guide to generate the ad code manually. Đối với những người quản trị web vẫn muốn sử dụng AdSense di sản đơn vị quảng cáo, sử dụng tài liệu hướng dẫn sau đây để tạo mã quảng cáo bằng tay.
Format of Legacy Old Google AdSense Ad Code Định dạng của Old Legacy Quảng cáo của Google AdSense Mã
Both text ads, image ads, video ads, and link units use the similar ad code format as below: Cả quảng cáo văn bản, quảng cáo hình ảnh, quảng cáo video, và các đơn vị liên kết sử dụng định dạng quảng cáo mã tương tự như dưới đây:
<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 × 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 / / Ngày 25 tháng 7 năm 2007: My 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 = "005.577";
//–> / / ->
</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 Tùy chọn có sẵn Sử dụng JavaScript Variables
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. Các mã quảng cáo trên nên được tùy biến và thay đổi bằng cách sử dụng giá trị khác nhau cho các biến Javascript để phản ánh các đơn vị quảng cáo AdSense thích, đây là mô tả ngắn gọn của mỗi biến trong mã quảng cáo.
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 - Các nhà xuất bản ID đó là cần thiết và phải được chính xác để được trả tiền và kiếm được doanh thu từ chương trình AdSense của Google khi nhấp chuột đủ điều kiện hoặc xem trang xảy ra .. The publisher ID can be retrieved from Google AdSense account. ID nhà xuất bản có thể được lấy từ tài khoản AdSense của Google.
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 - Xác định kích thước và định dạng của các đơn vị quảng cáo AdSense để hiển thị. 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. Tất cả có giá trị nên được kết hợp với nhau, tức là số lần đầu tiên trước khi 'x'in google_ad_format cũng google_ad_wide, và số thứ hai sau khi' x 'trước khi' _ 'là 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 và google_ad_width không có hiệu lực vào kích thước quảng cáo thực tế là họ chỉ kiểm soát ô đối tượng trong đó các đơn vị quảng cáo được chứa. 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. Các thông số được sử dụng bình thường để duy trì một bản trình bày bố trí phù hợp khi bố trí trang cung cấp cho một khu vực rộng hơn đó là các đơn vị quảng cáo chính nó. Google provides 24 different ad formats (12 ad units and 12 link units) for web page placement. Google cung cấp 24 định dạng quảng cáo khác nhau (12 đơn vị quảng cáo và 12 đơn vị liên kết) để có vị trí trang web.
Normal Ad Unit: Quảng cáo bình thường Đơn vị:
728×90_as (Leaderboard) 728 × 90_as (Bảng dẫn)
468×60_as (Banner) 468 × 60_as (Banner)
234×60_as (Half Banner) 234 × 60_as (Half Banner)
125×125_as (Button) 125 × 125_as (Button)
120×600_as (Skyscraper) 120 × 600_as (chọc trời)
160×600_as (Wide Skyscraper) 160 × 600_as (chọc trời)
180×150_as (Small Rectangle) 180 × 150_as (nhỏ chữ nhật)
120×240_as (Vertical Banner) 120 × 240_as (Vertical Banner)
200×200_as (Small Square) 200 × 200_as (vuông Nhỏ)
250×250_as (Square) 250 × 250_as (Square)
300×250_as (Rectangle) 300 × 250_as (chữ nhật)
336×280_as (Large Rectangle) 336 × 280_as (Hình Chữ nhật Lớn)
Link Unit: Liên kết Đơn vị:
120×90_0ads_al (4 links) 120 × 90_0ads_al (4 liên kết)
120×90_0ads_al_s (5 links) 120 × 90_0ads_al_s (5 liên kết)
160×90_0ads_al (4 links) 160 × 90_0ads_al (4 liên kết)
160×90_0ads_al_s (5 links) 160 × 90_0ads_al_s (5 liên kết)
180×90_0ads_al (4 links) 180 × 90_0ads_al (4 liên kết)
180×90_0ads_al_s (5 links) 180 × 90_0ads_al_s (5 liên kết)
200×90_0ads_al (4 links) 200 × 90_0ads_al (4 liên kết)
200×90_0ads_al_s (5 links) 200 × 90_0ads_al_s (5 liên kết)
468×15_0ads_al (4 links) 468 × 15_0ads_al (4 liên kết)
468×15_0ads_al_s (5 links) 468 × 15_0ads_al_s (5 liên kết)
728×15_0ads_al (4 links) 728 × 15_0ads_al (4 liên kết)
728×15_0ads_al_s (5 links) 728 × 15_0ads_al_s (5 liên kết)
google_ad_type – Definite if only text ads, images ads or both type of ads is allowed. google_ad_type - xác định nếu chỉ quảng cáo văn bản, hình ảnh quảng cáo hoặc cả hai loại quảng cáo được cho phép. Note that for Flash based ads and video ads to appear, image ads must be enabled. Lưu ý rằng cho quảng cáo Flash và dựa vào các quảng cáo video xuất hiện, quảng cáo hình ảnh phải được kích hoạt. Available options are: Tùy chọn sẵn có:
text – for AdSense text ads only văn bản - cho quảng cáo văn bản của AdSense chỉ
image – for image ads only, including video ads and Flash ads. hình ảnh - cho quảng cáo hình ảnh, bao gồm quảng cáo video và quảng cáo Flash.
text_image – for text and image ads text_image - cho văn bản và hình ảnh quảng cáo
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 - Hiển thị một quảng cáo hoặc các trang web khi chương trình AdSense của Google không có một quảng cáo có liên quan cho các khe quảng cáo. By default, a public service ad is display. Theo mặc định, một quảng cáo dịch vụ công cộng được hiển thị. Specifying the alternate ad URL will display the content specified in the URL. Chỉ định URL quảng cáo luân phiên sẽ hiển thị các nội dung quy định tại 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. Lưu ý rằng mã quảng cáo thay thế nên được xác định trong tệp HTML, và không nên có kích thước lớn hơn rằng đơn vị quảng cáo của Google, hoặc các quảng cáo khác thay thế sẽ được cắt bỏ hoặc tỉa đi. It's also possible to put in an alternate URL which will collapse the ad space (no space been used for the ad). Cũng có thể để đưa vào một URL khác mà sẽ sụp đổ không gian quảng cáo (không gian không được sử dụng cho quảng cáo).
google_ad_channel – To specify a custom channel (a 10 digits number) to track ad performance and statistics. google_ad_channel - Để xác định một kênh tùy chỉnh (một số 10 chữ số) để theo dõi hiệu suất quảng cáo, thống kê. Channel ID must be created at AdSense account before they can be used. Channel ID phải được tạo ra tại tài khoản AdSense trước khi chúng có thể được sử dụng.
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 - Xác định màu sắc của các biên giới quảng cáo, nền quảng cáo, tiêu đề quảng cáo của mỗi quảng cáo, quảng cáo văn bản bên trong các khối quảng cáo, và URL ở dưới cùng của mỗi quảng cáo. 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ên đến 4 giá trị riêng biệt (phân biệt bằng dấu phẩy) có thể được cung cấp cho màu sắc tự động xoay khi quảng cáo được phục vụ bởi các máy chủ của Google. The image ads does not affect by these values. Các quảng cáo hình ảnh không ảnh hưởng bởi những giá trị này. Note that the color value should be Lưu ý rằng giá trị màu sắc nên được converted in hexadecimal format chuyển đổi định dạng thập lục phân . .
IMPORTANT : The page is machine translated and provided "as is" without warranty. Quan trọng: Sửa là máy dịch và cung cấp "như là" không có bảo hành. Machine translation may be difficult to understand. Máy dịch thuật có thể khó hiểu. Please refer to Vui lòng tham khảo original English article bản gốc tiếng Anh bài viết whenever possible. bất cứ khi nào có thể.
Related Articles Bài viết liên quan
- Add and Put AdSense Ads Code and JavaScript to Google Page Creator Website Thêm và Đặt Quảng cáo AdSense Mã và JavaScript để Google Page Creator Website
- google_ad_host Host ID in Google AdSense Ad Unit Code and Revenue Sharing google_ad_host Host ID trong quảng cáo của Google AdSense Mã số đơn vị và doanh thu Chia sẻ
- Trick to Add AdSense, AdBrite and Other JavaScript Ad Code Directly to Blogger HTML Template Thủ thuật Thêm AdSense, AdBrite và khác Mã JavaScript Quảng cáo trực tiếp lên Blogger Template HTML
- Monitor Google AdSense Account With Shock AdSense Màn hình của Google AdSense Tài khoản Với AdSense Shock
- How to Hide and Collapse Google AdSense Ad Unit Instead of Showing Public Service Ad (PSA) Làm thế nào để ẩn và Thu gọn đơn vị quảng cáo AdSense của Google Thay vì hiển thị quảng cáo Dịch vụ Công cộng (PSA)
- Implement Ad Revenue Sharing in Blogger (Supports Google AdSense And Any Code) Quảng cáo Doanh thu thực hiện Chia sẻ trong Blogger (Hỗ trợ của Google AdSense Và Bất kỳ Mã)
- AdSense Login to Update to Google Account AdSense Đăng nhập để cập nhật vào Tài khoản Google
- Sign Up for Google AdSense Referrals Beta CPA Network with Review Đăng ký cho Google AdSense giới thiệu bản Beta CPA mạng với Review
- How to Reset AdSense Password Not Associated with Google Account Làm thế nào để Đặt lại mật khẩu của AdSense Không liên kết với Tài khoản Google
- Add and Insert to Put Google AdSense Ads Units Between Blog Posts in Blogger.com Thêm và Insert để Đặt Quảng cáo của Google AdSense Đơn vị Từ Blog Bài viết trong Blogger.com










































July 22nd, 2009 22:00 22 Tháng 7 Năm 2009 22:00
Thanks. Cảm ơn. Very helpful to a script I was writing to dynamically generate adsense script. Rất hữu ích để một kịch bản tôi đã viết để tự động tạo ra các kịch bản adsense.
January 19th, 2009 01:50 Ngày 19 tháng một năm 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 [...] [...] Nhà xuất bản di sản cổ điển bằng cách sử dụng mã quảng cáo AdSense của Google, thêm biến mới tên là google_alternate_ad_url JavaScript vào mã quảng cáo AdSense của Google quảng cáo của đơn vị [...]