How to Hide and Collapse Google AdSense Ad Unit Instead of Showing Public Service Ad (PSA) Kā Hide and Collapse Google AdSense reklāmas vienība vietā Showing Public Service Reklāmas (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 ir iespējams reklāmas tīkls, kas ir augstākais jāaizpilda par katru un katru reklāmas vietu uzskaite ir pieejama, ir ASV, Ziemeļamerikā vai Eiropā, pamatojoties apmeklētāju starptautiskajā satiksmē. However, it's still possible that Google AdSense crawler scans the page, and does not find any relevant ads to display. Tomēr tas joprojām ir iespējams, ka Google AdSense kāpurķēžu skenē lapā, un nav iespējams atrast atbilstošu reklāmu parādīt. 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. Kad nav reklāma ir vērstas reklāmas vienība, Google AdSense Public Service Ad, pazīstams kā PSA tā vietā tiek rādīts, ja rezerves reklāmas URL ir noteikts.
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. Tīmekļa pārziņiem, emuāru autoriem un izdevējiem, kuri nav nekāda alternatīva reklāmas parādīt, nevēlas aizpildīt reklāmas laukumu ar vienkrāsainu (ar google_alternate_color JavaScript mainīties), un nevēlaties, mājas lapas apmeklētāji redzēt jebkuras sabiedrisko pakalpojumu reklāmu ( kas nav samaksāts anyway), Google AdSense piedāvā citas izvēles, kas ir saplokošo reklāmu komplektā.
According to Saskaņā ar AdSense Help AdSense Help , 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. , Saplokošo reklāmu vienības izvēles papildu funkcija aizstājēju reklāmas - saplokošo reklāmu komplektu kods "sabrukums" reklāmas vienība, lai tā pārņem ne page vieta, ja nav reklāmas pieejams. This allows you to minimize any blank, unused, or not monetizing space that would otherwise occur through the use of alternate colors. Tas ļauj jums, lai samazinātu jebkādu tukša, neizmantota, vai ne Monetizing telpa, kas citādi rastos, izmantojot alternatīvu krāsu.
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). Ņemiet vērā, ka saplokošo reklāmu komplektu tikai strādāt par mājas lapu, kas izvietoti uz tā paša domēna vārds vai apakšdomēnu savā serverī, kas dod iespēju no attāluma vai konsolē pieejamību (arī iespējams, izmantojot FTP vai SFTP, Telnet vai 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. Iemesls tam ir tāpēc, ka skripta fails ir augšupielādēts un vada par atrašanās vietu katrā jomā un sub-domēnu, kas tiks piesaistītas, un aicināja aizstājēji reklāmas URL īstenot saplokošo reklāmu komplektā. 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. Tā lietotājiem Blogger vai blogspot.com (izņemot gadījumus, kas izvietota ārējo serveri vai iepriekš jāmodernizē Blog * Spot Plus) WordPress.com, Blogsome.com utt, iespējams, no luck.
To implement the collapsing ad units feature, follow the instructions below: Lai īstenotu saplokošo reklāmu komplektu funkciju, izpildiet tālāk minētos norādījumus:
- Download the collapsing ad units file by right-clicking the link below and selecting 'Save Target as…': Download saplokošo reklāmu komplektu faila ar peles labo pogu noklikšķinot uz saiti zemāk un izvēloties "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. Kopēt vai augšupielādēt google_adsense_script.html uz jebkuru vietu domēna īstenot saplokošo reklāmu komplektā. 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. Atrašanās vieta nav svarīga, kamēr tas ir par pašu domēnu ar ar reklāmu vienība interneta lapas slēpt, ja ne reklāmas. For multiple domains or subdomains, the HTML file is required for each of them in order for collapsing ad unit to work. Par vairākiem domēniem vai apakšdomēnu, HTML fails ir nepieciešama katram no viņiem, lai saplokošo reklāmu vienības darbu.
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. Piemēram, www.mydigitallife.info var vadīt HTML visus tīmekļa vietnē www.mydigitallife.info, bet ne www.tipandtrick.net, ne forums.mydigitallife.info strādās.
- Login to Google AdSense account. Login to Google AdSense kontā.
- For existing ad unit, click on AdSense Setup, and then Manage Ads. Esošajām reklāmas vienība, klikšķiniet uz AdSense iestatīšana un pēc tam Pārvaldīt reklāmām. Edit Ad Settings of the ad unit to implement the collapsing on no ad feature. Rediģēt Reklāmas iestatījumi par reklāmas vienība, lai īstenotu saplokošo nekādā reklāmas līdzekli. 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. Zem "More options" sadaļā izvēlieties Show non-Google reklāmām no citas URL radio pogu un ievadiet pilnīgi noteikti ceļu saplokošo reklāmu komplektu HTML failu domēnu. No change of code necessary. Nav koda izmaiņas nepieciešams.

For new ad code, click on AdSense Setup, and then Get Ads. Par jaunu reklāmu kodu, uzklikšķiniet uz AdSense iestatīšana un pēc tam saņemt reklāmu. 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. Noklikšķiniet uz AdSense saturu un pēc tam izvēlieties Rādīt non-Google reklāmām no citas URL radio pogas zem "More options" sadaļu un ievadiet pilnīgi noteikti ceļu saplokošo reklāmu komplektu HTML failu domēnu. Copy and paste the ad code into the web page to implement Google AdSense. Nokopējiet un ielīmējiet reklāmu kodu mājas lapu, lai īstenotu Google AdSense programmā.
For publisher using For izdevējs izmanto classic legacy Google AdSense ad code klasiskais mantojums Google AdSense reklāmu kodu , 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. Pievienot jaunu JavaScript mainīgo ar nosaukumu google_alternate_ad_url ar Google AdSense reklāmu vienība reklāmu kodu, kas vēlas slēpšanās reklāmas vienība, ja nav reklāmas. For example, Piemēram,
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. Pēc pievienošanas vietnieks URL, kas norāda uz sabrukšanas skriptu AdSense reklāmu kodu, reklāmas vienībām izzudīs, ja reklāmas nav pieejamas. When visitor is using Internet Explorer version 5.0 or lower – any unused ad units will appear as empty, transparent boxes. Kad apmeklētājs ir izmantojot Internet Explorer versija 5.0 vai mazāks - neizlietotās reklāmu komplekti būs redzami kā tukši, caurspīdīgi lodziņi.
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: Lietotāju, kas nevar augšupielādēt vai nodošana HTML failu uz web serveri, bet konsole piekļūt un spēj SSH vai Telnet vērā uzņēmējas, tikai izveidot jaunu google_adsense_script.html caur vi uz servera web saknes direktorijā, un tad kopija un ielīmējiet šādu saturu:
<!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> <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. SVARĪGI: lapa mašīna iztulkot un pasniegts tàds, "kàds tas ir" bez garantijas. Machine translation may be difficult to understand. Mašīntulkošanas 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
- google_ad_host Host ID in Google AdSense Ad Unit Code and Revenue Sharing google_ad_host Host ID Google AdSense reklāmu vienības kods un ieņēmumu sadali
- Place AdSense Ad Unit In Various Positions Inside Within Blogger Post Contents Vieta AdSense reklāmu komplektu dažādās vietās Inside laikā Blogger Post Saturs
- Add and Put AdSense Ads Code and JavaScript to Google Page Creator Website Pievienot un Put AdSense reklāmu kods un JavaScript Google Page Creator Website
- Google AdSense Legacy Old Generation Code Reference (Generate and Get) Google AdSense Legacy Vecā paaudze Kods Atsauce (Sagatavot un Get)
- Monitor Google AdSense Account With Shock AdSense Monitor Google AdSense kontu ar triecienu AdSense
- Alternative Payment Option from Google AdSense via Western Union Quick Cash Service Alternatīvās maksāšanas iespēju no Google AdSense, izmantojot Western Union Quick Cash Service
- Set Allowed Sites for Google AdSense Publisher Account Uzstādīt Allowed Sites Google AdSense kontu
- How to Remove or Delete (Unlink) Google AdSense and Analytics Integration Kā to noņemšana vai dzēšana (noņemšana) Google AdSense un Analytics integrācija
- Google Adsense New Ads Revenue Stream – Content Referral Network Google Adsense Jaunas reklāmas ieņēmumu plūsma - Content Referral Network
- When was Google AdSense Launched? Kad Google AdSense launched?










































March 10th, 2009 04:26 10 marts 2009 04:26
I like the idea of a collapsing script – but is this in line with Google's TOS? Man patīk ideja par saplokošo skripts - bet tas saskan ar Google TOS?