How to Hide and Collapse Google AdSense Ad Unit Instead of Showing Public Service Ad (PSA) Ako skryť a zbaliť Google AdSense reklamné jednotky Miesto zobraziť verejnej služby Ad (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 je pravdepodobne reklamnú sieť, ktorá má najvyššiu sadzbu vyplniť na každom zásob reklamný priestor k dispozícii, je pre USA, Severnej Ameriky alebo Európy, založenej návštevníkov alebo medzinárodnej dopravy. However, it's still possible that Google AdSense crawler scans the page, and does not find any relevant ads to display. Avšak, je stále možné, že Google AdSense prehľadáva stránku a nenájde žiadne relevantné reklamy na zobrazenie. 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. Ak nie je reklama cielená reklamná jednotky Google AdSense Inzerát verejnej služby, bežne známy ako PSA je uvedené miesto, ak alternatívna URL nie je stanovené.
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. Pre webmasterov, bloggers alebo vydavatelia, ktorí nemajú žiadne alternatívne reklamy, aby preukázal, nechcete vyplňovať reklamný priestor s farbou (s premennou google_alternate_color JavaScript), a nechcete, aby návštevníci stránok vidieť žiadne reklamy na verejné služby ( , ktorý je non-platí rovnako), Google AdSense ponúka inú voľbu, to sú zasúvacie reklamné jednotka.
According to Podľa AdSense Help AdSense Pomocník , 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. , Strácajúci sú voliteľné pokročilé funkcie alternatívnych reklám - zasúvacie reklamné jednotky kód 'pádu' reklamnú jednotku tak, aby žiadna strana zaberá priestor ak nie sú k dispozícii žiadne cielené reklamy k dispozícii. This allows you to minimize any blank, unused, or not monetizing space that would otherwise occur through the use of alternate colors. To vám umožní minimalizovať prázdne, nevyužité, alebo nie speňažiť miesto, ktoré by inak bolo dosiahnuté vďaka použitie alternatívnych farieb.
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). Všimnite si, že zasúvacie reklamné jednotka pracovať len na webových stránkach, ktoré hostilo na svoje vlastné domény alebo subdomény na vlastný server, ktorý umožňuje vzdialený prístup alebo konzolu (možné aj pomocou protokolu FTP alebo SFTP, Telnet alebo 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. Dôvodom je to, že skript musí byť súbor nahraný a hosťovaní na umiestnenie jednotlivých doménach a sub-domény, ktorá bude odkazom a nazýva alternatívna URL realizovať zasúvacie reklamné jednotky. 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. Takže používatelia služby Blogger alebo blogspot.com (ak nie je umiestnený na externom serveri alebo skôr aktualizovaný na webe Blog * Spot Plus) WordPress.com, Blogsome.com atď a pravdepodobne smolu.
To implement the collapsing ad units feature, follow the instructions below: Ak chcete používať zasúvacie reklamné jednotky, postupujte podľa nižšie uvedených pokynov:
- Download the collapsing ad units file by right-clicking the link below and selecting 'Save Target as…': Stiahnite si miznúce súbor pravým-kliknutím na nižšie uvedený odkaz a voľbou 'Uložiť cieľ ako ...': 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 kopírovať alebo presúvať na ľubovoľné miesto na doméne vykonať zasúvacie reklamné jednotky. 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. Umiestnenie nie je dôležité, ako dlho, ako je to na rovnakej doméne s webovej stránky s reklamnú jednotku skryť, keď žiadne reklamy. For multiple domains or subdomains, the HTML file is required for each of them in order for collapsing ad unit to work. Pre viac domén a subdomén, je súbor HTML potrebné pre každého z nich, aby zasúvacie reklamné jednotky do práce.
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. Napríklad možno www.mydigitallife.info hosť HTML pre všetky webové stránky pod www.mydigitallife.info, ale nie www.tipandtrick.net, ani forums.mydigitallife.info bude fungovať.
- Login to Google AdSense account. Prihlásiť sa k účtu Google AdSense.
- For existing ad unit, click on AdSense Setup, and then Manage Ads. Pre existujúce reklamné jednotky, kliknite na Nastavenie AdSense, a potom Spravovať reklamy. Edit Ad Settings of the ad unit to implement the collapsing on no ad feature. Upraviť reklamné Nastavenia reklamnú jednotku na vykonávanie skolaboval na žiadne reklamné funkciu. 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. Pod "Ďalšie možnosti" vyberte iné Show-reklamy Google z iného rádia tlačidlo URL a zadajte cestu k úplne definované miznúce HTML súboru na vašej doméne. No change of code necessary. Žiadna zmena kódu potrebné.

For new ad code, click on AdSense Setup, and then Get Ads. Pre nové reklamné kód, kliknite na Nastavenie AdSense, a potom Získať reklamy. 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. Kliknite na AdSense pre obsah a vyberte iné Show-reklamy Google z iného rádia tlačidlo URL v rámci programu "Ďalšie možnosti" časti a zadajte cestu k úplne definované miznúce HTML súboru na vašej doméne. Copy and paste the ad code into the web page to implement Google AdSense. Skopírovať a vložiť kód reklamy do webovej stránky zavedenie služby Google AdSense.
For publisher using Pre vydavateľa pomocou classic legacy Google AdSense ad code klasické dedičstvo Google AdSense inzerát kód , 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. , Pridať novú premennú s názvom JavaScript google_alternate_ad_url reklamné jednotky Google AdSense inzerát kód, ktorý chce, aby sa schováva reklamnú jednotku, kedy žiadne cielené reklamy. For example, Napríklad,
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. Po pridaní alternatívne URL, ktoré ukazuje na skriptu miznúce na kód AdSense, budú reklamné jednotky zmiznú, keď cielené reklamy nie sú k dispozícii. When visitor is using Internet Explorer version 5.0 or lower – any unused ad units will appear as empty, transparent boxes. Keď návštevník používa Internet Explorer verzie 5.0 alebo nižšia - všetky nepoužité reklamné jednotky sa zobrazia ako prázdne priehľadné oblasti.
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: Pre používateľov, ktorí nemôžu presúvať alebo prevod HTML súboru na webový server, ale konzola prístup a možnosť SSH alebo Telnet do počítača, stačí vytvoriť nový google_adsense_script.html cez vi na serveri koreňovému adresári webu a skopírujte a vložte nasledujúci obsah:
<!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. Upozornenie: stránka je stroje preložené a za predpokladu, "ako je" bez záruky. Machine translation may be difficult to understand. Strojový preklad môže byť ťažké pochopiť. Please refer to Nájdete na original English article originál Anglicky artikl whenever possible. ak je to možné.
Related Articles Súvisiace články
- google_ad_host Host ID in Google AdSense Ad Unit Code and Revenue Sharing google_ad_host Host ID v Google AdSense reklamnej jednotky zákonníka a zdieľanie príjmov
- Place AdSense Ad Unit In Various Positions Inside Within Blogger Post Contents Miesto AdSense reklamné jednotky na rôznych pozíciách v rámci Vnútri Blogger pošty Obsah
- Add and Put AdSense Ads Code and JavaScript to Google Page Creator Website Pridať a Put AdSense Reklamy Kód a JavaScript až webových stránok Google Page Creator
- Google AdSense Legacy Old Generation Code Reference (Generate and Get) Google AdSense Legacy starej generácie kód Reference (Vytvárať a Get)
- Monitor Google AdSense Account With Shock AdSense Monitor Google AdSense v šoku AdSense
- Alternative Payment Option from Google AdSense via Western Union Quick Cash Service Možnosť alternatívne platby od Google AdSense cez Western Union Quick Cash Service
- Set Allowed Sites for Google AdSense Publisher Account Set Povolené stránky pre Google AdSense účet
- How to Remove or Delete (Unlink) Google AdSense and Analytics Integration Ako odstrániť alebo Delete (Odpojiť) Google AdSense a Analytics integrácie
- Google Adsense New Ads Revenue Stream – Content Referral Network Nové reklamy Google AdSense príjmov - Obsah Vrátenie sieť
- When was Google AdSense Launched? Keď bol Google AdSense Odpálit raketu?










































March 10th, 2009 04:26 10.března 2009 04:26
I like the idea of a collapsing script – but is this in line with Google's TOS? Páči sa mi myšlienka skriptu miznúce - ale je to v súlade s TOS Google?