How to Hide and Collapse Google AdSense Ad Unit Instead of Showing Public Service Ad (PSA) כיצד הסתר כווץ של 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. כאשר אין מודעות ממוקדות ביחידת מודעה, AdSense של Google מודעות שירות לציבור, הידוע בכינויו ה-PSA מוצג במקום, אלא אם כן מודעות חלופיות כתובת האתר המצוין.
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. עבור מנהלי אתרים, בלוגרים או שותפים שאין להם כל מודעות חלופיות כדי להראות, לא רוצה למלא את החלל עם המודעה בצבע אחיד (עם משתנה JavaScript google_alternate_color), ואת לא רוצה המבקרים באתר לראות כל מודעות לשירות הציבור ( אשר לא שילם ממילא), 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, SSH או Telnet). 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. הסיבה היא קובץ סקריפט צריך להיות נטען ואירוח על המיקום של כל תחום ותת תחום, אשר יהיה בהפניה שנקרא על ידי כתובת המודעה החלופית ליישם את יחידת המודעה קורסת. 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 פלוס), 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…': הורד את הקובץ מתמוטט יחידות מודעה על ידי לחיצה ימנית על הקישור הבא ובחירה באפשרות "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. תחת "אפשרויות נוספות" מקטע, בחר את הלא הצג מודעות מ-Google אחר כתובת לחצן הבחירה, ואת הזן את הנתיב מוגדר באופן מלא את קריסתה יחידות מודעה קובץ 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 לתוכן, ולאחר מכן בחר הצג שאינם-מודעות Google כפתור אחר כתובת הרדיו תחת אפשרויות "" סעיף נוסף, והזן את הנתיב מוגדר באופן מלא את קריסתה יחידות מודעה קובץ HTML על התחום שלך. Copy and paste the ad code into the web page to implement Google AdSense. העתק והדבק את קוד המודעה לתוך דף האינטרנט ליישם תוכנית Google AdSense.
For publisher using עבור Publisher באמצעות 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. לאחר הוספת כתובת חלופית אשר מצביע על התסריט מתמוטט על קוד המודעה של 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 השישי על דרך חדשה בספריית השורש של שרת האינטרנט, ולאחר מכן להעתיק והדבק את התוכן הבא:
<!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;”> style="background-color: <body 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 ב-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 Website
- Google AdSense Legacy Old Generation Code Reference (Generate and Get) Google AdSense מורשת העתיקה הפקת קוד הפניה (להפיק קבל)
- 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 Publisher חשבון
- How to Remove or Delete (Unlink) Google AdSense and Analytics Integration כיצד להסיר או מחק (בטל את הקישור) של Google AdSense Analytics אינטגרציה
- Google Adsense New Ads Revenue Stream – Content Referral Network גוגל אדסנס מודעות חדשות זרם הכנסות - תוכן הפנייה רשת
- 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? אני אוהב את הרעיון של תסריט קורסת - אבל זה עולה בקנה אחד עם TOS של גוגל?