How to Hide and Collapse Google AdSense Ad Unit Instead of Showing Public Service Ad (PSA) Kaip paslėpti ir Suskleisti Google AdSense reklamos padalinio Vietoj Rodomi viešųjų paslaugų reklama (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 tikriausiai reklamos tinkle, kuris yra pats didžiausias užpildyti norma kiekvienam reklamos vietos inventorinius įmanoma, bus tik JAV, Šiaurės Amerika ar Europa pagrįsta lankytojų arba tarptautinis eismas. However, it's still possible that Google AdSense crawler scans the page, and does not find any relevant ads to display. Tačiau jis vis tiek gali būti, kad Google AdSense nuskaito puslapio, o ne rasti visus atitinkamus skelbimus. 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. Jei ne reklamos nukreiptos į reklamos bloke Google AdSense viešųjų paslaugų reklama, paprastai vadinamas "PSA rodomas vietoj, nebent pakaitinis skelbimų URL yra nurodyta.
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. Webmasters, Bloggers ar leidėjams, kurie neturi jokių alternatyvių skelbimai bus rodomi, nenorite užpildyti reklamos erdvė spalva (su google_alternate_color JavaScript kintamasis) ir nenorite, kad svetainės lankytojai matyti viešo aptarnavimo skelbimus ( kurios nėra mokamos bet kuriuo atveju), "Google AdSense siūlo kitą pasirinkimą, ty zwijanej vieneto skelbimų.
According to Pagal 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. , Zwijanych vienetų skelbimų yra pasirinktinai pažangios funkcija skelbimų pakaitalų - zwijanych reklaminio bloko kodas "sutraukia" jūsų reklaminis blokas taip, kad ji užima ne puslapio erdvę, jei nėra reklamas. This allows you to minimize any blank, unused, or not monetizing space that would otherwise occur through the use of alternate colors. Tai leidžia sumažinti tuščią, nepanaudoti arba ne pajamų erdvę, kad būtų kitaip naudojant alternatyvių spalvų.
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). Atkreipkite dėmesį, kad zwijanej vieneto skelbimų tik svetainėje, kad surengė savo domeno pavadinimą arba poddomen savo serveryje, kuris leidžia nuotolinio arba konsolės prieiga (taip pat galima per FTP arba SFTP, Telnet arba 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. Taip yra todėl, nes scenarijų byla turi būti įkeltas ir vyko į vietą kiekvieno domeno ir domeno, kuris bus paminėta ir vadinama alternatyvių URL įgyvendinti zwijanej vieneto skelbimų. 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. Taigi, vartotojai Blogger arba blogspot.com (nebent mitināts išorės serverio arba anksčiau buvo modernizuotos Blog * Spot Plus "), WordPress.com, Blogsome.com ir tt tikriausiai iš laimės.
To implement the collapsing ad units feature, follow the instructions below: Siekiant įgyvendinti zwijanych vienetų skelbimų funkciją, vadovaukitės šiais nurodymais:
- Download the collapsing ad units file by right-clicking the link below and selecting 'Save Target as…': Parsisiųsti failą zwijanych vienetų skelbimus, paspaudę dešiniu pelės klavišu ant nuorodos ir pasirinkite "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. Kopijuoti ar siųsti google_adsense_script.html bet vietoje domeno įgyvendinti zwijanej vieneto skelbimų. 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. Vieta nėra svarbu tol, kol jis tame pačiame domene su tinklalapius su reklaminio bloko paslėpti, kai nėra jokių skelbimų. For multiple domains or subdomains, the HTML file is required for each of them in order for collapsing ad unit to work. Daug domenų arba poddomen, HTML failas yra reikalinga kiekvienam iš jų, kad zwijanej vieneto skelbimų dirbti.
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. Pavyzdžiui, www.mydigitallife.info gali priimti HTML visuose puslapiuose pagal www.mydigitallife.info, bet ne www.tipandtrick.net, nei forums.mydigitallife.info dirbs.
- Login to Google AdSense account. Prisijunkite prie Google AdSense.
- For existing ad unit, click on AdSense Setup, and then Manage Ads. Dėl esamų reklamos bloką, spustelėkite AdSense, tada Tvarkyti skelbimai. Edit Ad Settings of the ad unit to implement the collapsing on no ad feature. Skelbimo redagavimas Nustatymai reklamos bloką įgyvendinti zwijanych jokiu reklamos funkcijos. 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. Skyriuje "Papildomi parametrai" pasirinkite Rodyti ne-Google skelbimus iš kitos URL mygtuką ir įveskite visą maršrutą iki zwijanych vienetų skelbimus, HTML failas jūsų domenui. No change of code necessary. Nekeičiama kodo reikia.

For new ad code, click on AdSense Setup, and then Get Ads. Naujų skelbimų kodą, spustelėkite AdSense, tada Gauti skelbimai. 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. Paspauskite AdSense turiniui, tada pasirinkite Rodyti ne-Google skelbimus iš kitos URL mygtuką pagal "Daugiau galimybių" skyrių ir įveskite visą maršrutą iki zwijanych vienetų skelbimus, HTML failas jūsų domenui. Copy and paste the ad code into the web page to implement Google AdSense. Nukopijuokite ir įklijuokite kodą į tinklalapį įgyvendinti Google AdSense.
For publisher using Dėl leidėjo taikant classic legacy Google AdSense ad code klasikinis paveldas Google AdSense kodas , 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. Pridėti naują JavaScript kintamąjį Google_alternate_ad_url į Google AdSense reklamos bloko reklamos kodą, kurį nori šansų reklaminis blokas, kai ne reklamas. For example, Pavyzdžiui,
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. Pridėjus alternatyvių URL, kuris nurodo zwijanych scenarijų AdSense kodą, reklamos blokų išnyks kai reklamas nėra. When visitor is using Internet Explorer version 5.0 or lower – any unused ad units will appear as empty, transparent boxes. Kai lankytojas naudojatės Internet Explorer versija 5.0 arba mažesnis, - nebenaudojamas vieneto reklamos bus rodomi kaip tuščios, permatomi laukus.
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: Vartotojo, kuris negali siųsti arba perduoti HTML failą į interneto serverį, tačiau jis konsolės galimybes ir galėti SSH arba Telnet į priimančiąją tiesiog sukurti naują google_adsense_script.html per vi ant web-serverio šakniniame kataloge, tada kopijuoti ir įklijuokite šį turinį:
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” <! DOCTYPE html PUBLIC "- / / W3C / / DTD XHTML 1.0 Transitional / / LT"
“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> <script src="http://pagead2.googlesyndication.com/pagead/google_adsense_script.js" 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. DĖMESIO: Šis puslapis yra mašina išvertė ir pateikiama "kaip yra" be garantijų. Machine translation may be difficult to understand. Mašininio vertimo, gali būti sunku suprasti. Please refer to Remkitės original English article originalas anglų straipsnis whenever possible. jei įmanoma.
Related Articles Susiję straipsniai
- google_ad_host Host ID in Google AdSense Ad Unit Code and Revenue Sharing google_ad_host buvimo ID Google AdSense reklamos padalinio kodas ir pajamų pasidalijimo
- Place AdSense Ad Unit In Various Positions Inside Within Blogger Post Contents Vieta AdSense reklamos vienetas Įvairūs Pozicijos Viduje Per Blogger Rašyti Turinys
- Add and Put AdSense Ads Code and JavaScript to Google Page Creator Website Pridėti ir Įdėkite AdSense reklamos kodeksas ir JavaScript Google Page Creator Website
- Google AdSense Legacy Old Generation Code Reference (Generate and Get) Google AdSense Legacy Senas kartos Kodas Nuoroda (Generuoti ir gauti)
- Monitor Google AdSense Account With Shock AdSense Monitorius "Google AdSense" paskyrą su Smūginės AdSense
- Alternative Payment Option from Google AdSense via Western Union Quick Cash Service Alternatyvūs atlikti mokėjimus iš Google AdSense per Western Union Quick Cash tarnyba
- Set Allowed Sites for Google AdSense Publisher Account Nustatyti Leistini svetaines Google AdSense Leidinys sąskaita
- How to Remove or Delete (Unlink) Google AdSense and Analytics Integration Kaip panaikinti arba I ¹ trinti (Išjungti ryšys) Google AdSense Analytics integracijos
- Google Adsense New Ads Revenue Stream – Content Referral Network Google Adsense Nauji skelbimai Pajamos Stream - Turinio tinklas
- When was Google AdSense Launched? Kada buvo "Google AdSense vykdomų?










































March 10th, 2009 04:26 Kovo 10, 2009 04:26
I like the idea of a collapsing script – but is this in line with Google's TOS? Man patinka mintis apie zwijanych scenarijus - bet tai yra suderinta su "Google TOS?