How to Hide and Collapse Google AdSense Ad Unit Instead of Showing Public Service Ad (PSA) Як приховати і Collapse Google AdSense рекламний блок замість того щоб показувати Оголошення суспільних послуг (PSA)
Google AdSense is probably the advertising network that has the highest fill rate for each and every ad space inventories available, be in for US, North America or Europe based visitors or international traffic. Google AdSense, ймовірно, рекламна мережа, яка має найвищу швидкість заповнення для кожного рекламного місця кадастрів доступна, перебувати в США, Північній Америці чи Європі, засноване відвідувачів або міжнародних перевезень. However, it's still possible that Google AdSense crawler scans the page, and does not find any relevant ads to display. Однак, це ще можливо, що Google AdSense гусеничних сканує сторінки, і не знаходить релевантні об'яви для показу. When no ad is targeted in an ad unit, Google AdSense Public Service Ad, commonly known as PSA is shown instead, unless an alternate ads URL is specified. Коли немає оголошень орієнтована в рекламних блоків Google AdSense Оголошення суспільних послуг, широко відомий як ПСА показав Замість цього, якщо альтернативних оголошень вказано URL.
For webmasters, bloggers or publishers who don't have any alternative ads to show, do not want to fill in the ad space with a solid color (with google_alternate_color JavaScript variable), and do not want website visitors to see any public service ads (which is non-paid anyway), Google AdSense offers another choice, that is collapsing ad unit. Для вебмайстрів, блогерів і видавців, які не мають альтернативного оголошення потрібно показати, не хочуть, щоб заповнити в рекламний простір суцільним кольором (з google_alternate_color змінну JavaScript), і не хочете відвідувачів веб-сайту, щоб побачити які об'яви ( який без збереження заробітної плати в будь-якому випадку), Google AdSense пропонує іншого вибору, що руйнується рекламного блоку.
According to Згідно AdSense Help Центру AdSense , collapsing ad units are an optional advanced feature of alternate ads – the collapsing ad unit code will 'collapse' your ad unit so that it takes up no page space if there are no targeted ads available. , Розвал рекламні блоки додаткова можливість альтернативних оголошень - код згортається рекламного блоку буде "розвал" Ваш рекламний блок, так що вона не займає сторінку простір, якщо немає доступних націлених. This allows you to minimize any blank, unused, or not monetizing space that would otherwise occur through the use of alternate colors. Це дозволяє звести до мінімуму будь-яке пусте, невикористані або не отримувати прибуток простору, яка б в іншому випадку за рахунок використання альтернативних кольорів.
Note that the collapsing ad unit only work on website that hosted on its own domain name or subdomains on its own server that allows remote or console access (also possible via FTP or SFTP, Telnet or SSH). Зверніть увагу, що руйнується рекламний блок працює тільки на сайт, який розміщено на своє ім'я домен або субдомен на своєму сервері, що дозволяє віддаленим доступом або консоль (також можлива через FTP або SFTP, Telnet чи SSH). The reason is because a script file has to be uploaded and hosted on the a location of each domain and sub-domain, which will be referenced and called by alternate ad URL to implement the collapsing ad unit. Причина в тому, що файл сценарію повинен бути завантажений і розміщеного на місці кожного домену та суб-доменів, які будуть посилатися і називається URL альтернативного оголошення, щоб скористатися функцією згортається рекламних блоків. So users of Blogger or blogspot.com (unless hosted on an external server or previously upgraded to Blog*Spot Plus), WordPress.com, Blogsome.com and etc. probably out of luck. Тому користувачі Blogger або blogspot.com (якщо розміщення на зовнішньому сервері або раніше підвищено до рівня Blog * Spot Plus), WordPress.com, Blogsome.com і т.д., ймовірно, не пощастило.
To implement the collapsing ad units feature, follow the instructions below: Щоб скористатися функцією згортається рекламних блоків, дотримуйтесь інструкцій нижче:
- Download the collapsing ad units file by right-clicking the link below and selecting 'Save Target as…': Завантажити файл згортається рекламних блоків правою кнопкою мишки на посиланні нижче і оберіть "Зберегти об'єкт як ... ': google_adsense_script.html google_adsense_script.html . .
- Copy or upload google_adsense_script.html to any location on a domain to implement the collapsing ad unit. Скопіюйте або завантажте google_adsense_script.html в будь-яке місце на домен для здійснення згортається рекламного блоку. The location is not important as long as it's on the same domain with the webpages with the ad unit to hide when no ads. Місце не має значення до тих пір, як в той же домен з веб-сторінки з рекламним блоком, щоб приховати, коли немає оголошень. For multiple domains or subdomains, the HTML file is required for each of them in order for collapsing ad unit to work. Для декількох доменів або субдоменів, файл HTML потрібна для кожного з них для того, щоб згортається рекламного блоку на роботу.
For example, www.mydigitallife.info can host the HTML for all web pages under www.mydigitallife.info, but not www.tipandtrick.net, nor forums.mydigitallife.info will work. Наприклад, можна www.mydigitallife.info приймаючої HTML для всіх веб-сторінок під www.mydigitallife.info, але не www.tipandtrick.net, ні forums.mydigitallife.info буде працювати.
- Login to Google AdSense account. Увійти до кабінету Google AdSense.
- For existing ad unit, click on AdSense Setup, and then Manage Ads. Для існуючих рекламних блоків, натисніть "Настройка AdSense", а потім Керування оголошеннями. Edit Ad Settings of the ad unit to implement the collapsing on no ad feature. Змінити Настройки оголошень рекламного блоку по здійсненню валиться на не оголошення функції. Under “More options” section, select the Show non-Google ads from another URL radio button, and enter the fully defined path to the collapsing ad units HTML file on your domain. У розділі "Додаткові параметри" виберіть Non-Google Показати об'яви з іншого перемикач URL та введіть повністю певний шлях до згортається рекламних блоків HTML файл на вашому домені. No change of code necessary. Без змін коду необхідно.

For new ad code, click on AdSense Setup, and then Get Ads. За новий рекламний код, натисніть "Настройка AdSense", а потім Отримати оголошення. Click on AdSense for Content, and then select the Show non-Google ads from another URL radio button under the “More options” section, and enter the fully defined path to the collapsing ad units HTML file on your domain. Натисніть на AdSense для контексту, а потім виберіть Non-Google Показати об'яви з іншого URL перемикач у розділі "Додаткові параметри" розділу, і введіть повністю певний шлях до згортається рекламних блоків HTML файл на вашому домені. Copy and paste the ad code into the web page to implement Google AdSense. Копіювати і вставити рекламний код у веб-сторінку для реалізації Google AdSense.
For publisher using Для використання видавця classic legacy Google AdSense ad code класичною спадщиною Google AdSense рекламний код , add a new JavaScript variable named google_alternate_ad_url to the Google AdSense ad unit ad code which wants to make a hiding ad unit when no targeted ads. Додати нову змінну JavaScript ім'ям google_alternate_ad_url на оголошення Google AdSense рекламний блок коду, який хоче зробити одиницю переховувався до н.е., коли немає оголошень. For example, Наприклад,
google_alternate_ad_url = “http://www.mydigitallife.info/scripts/google_adsense_script.html” google_alternate_ad_url = "http://www.mydigitallife.info/scripts/google_adsense_script.html"
After adding the alternate URL which points to the collapsing script on the AdSense ad code, ad units will disappear when targeted ads are not available. Після додавання альтернативного URL, який вказує на валиться скрипт на рекламний код AdSense, рекламні блоки будуть зникати, коли оголошення, орієнтовані не є. When visitor is using Internet Explorer version 5.0 or lower – any unused ad units will appear as empty, transparent boxes. Коли відвідувач за допомогою Internet Explorer версії 5.0 або нижче - Невикористані рекламні блоки виводяться у вигляді порожніх прозорих клітинок.
For user who can't upload or transfer the HTML file to the web server, but has console access and able to SSH or Telnet into the host, just create a new google_adsense_script.html via vi on the server's web root directory, and then copy and paste the following content: Для користувачів, які не можуть завантажити або передачі файлів HTML на веб-сервер, але має доступу до консолі і здатні SSH або Telnet в приймаючих, просто створіть новий google_adsense_script.html через VI в кореневому каталозі веб-сервера, а потім скопіювати і вставити наступний зміст:
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” <! DOCTYPE HTML PUBLIC "- / / W3C / / DTD XHTML 1.0 Transitional / / EN"
“http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd “> "Http: / / www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns=”http://www.w3.org/1999/xhtml” xml:lang=”en” lang=”en”> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head> <head>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″ /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title></title> <title> </ TITLE>
<script src=”http://pagead2.googlesyndication.com/pagead/google_adsense_script.js” type=”text/javascript”></script> src = "http://pagead2.googlesyndication.com/pagead/google_adsense_script.js" <script type="text/javascript"> </ script>
</head> </ Head>
<body style=”background-color: transparent;”> <body style="background-color: transparent;">
</body> </ Body>
</html> </ Html>
IMPORTANT : The page is machine translated and provided "as is" without warranty. ВАЖЛИВО: Сторінка машина переведена і надаються "як є" без гарантії. Machine translation may be difficult to understand. Машинний переклад може бути важким для розуміння. Please refer to Будь ласка, зверніться до original English article оригінальний англійська статтю whenever possible. коли це можливо.
Related Articles Статті за Темі
- google_ad_host Host ID in Google AdSense Ad Unit Code and Revenue Sharing google_ad_host Host ID в Google AdSense рекламний блок коду та доходів
- Place AdSense Ad Unit In Various Positions Inside Within Blogger Post Contents Місце рекламний блок AdSense в різних позиціях всередині рамках Blogger Поштові Зміст
- Add and Put AdSense Ads Code and JavaScript to Google Page Creator Website Додати і покласти реклами AdSense і код JavaScript для Google Page Creator веб-сайту
- Google AdSense Legacy Old Generation Code Reference (Generate and Get) Google AdSense спадщина старого покоління шифр (Створення і Get)
- Monitor Google AdSense Account With Shock AdSense Монітор профілю Google AdSense з ударними AdSense
- Alternative Payment Option from Google AdSense via Western Union Quick Cash Service Альтернативний спосіб оплати від Google AdSense через Western Union Quick Cash служби
- Set Allowed Sites for Google AdSense Publisher Account Встановити "Дозволені сайти" для Google AdSense акаунта видавця
- How to Remove or Delete (Unlink) Google AdSense and Analytics Integration Як видалити або Видалити (Вимкнути) Google AdSense Інтеграція та аналітика
- Google Adsense New Ads Revenue Stream – Content Referral Network Google Adsense Нові оголошення грошові потоки - Content реферальне мережа
- When was Google AdSense Launched? Коли Google AdSense в дії?










































March 10th, 2009 04:26 10 березня 2009 04:26
I like the idea of a collapsing script – but is this in line with Google's TOS? Мені подобається ідея валиться сценарію - але це відповідно до ГС Google?