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: כדי ליישם את התכונה קורסת יחידות מודעה, עקוב אחר ההוראות הבאות:

  1. 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 . .
  2. 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 יעבוד.

  3. Login to Google AdSense account. היכנס לחשבון Google AdSense.
  4. 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. אין שינוי של הקוד הנחוץ.

    Google AdSense Collapsing Ad Unit

    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. בכל הזדמנות אפשרית.


One Response to “How to Hide and Collapse Google AdSense Ad Unit Instead of Showing Public Service Ad (PSA)” תגובה אחת ל "כיצד הסתר כווץ של Google AdSense במקום יחידת מודעה של עמוד שירות לציבור מודעות (PSA)"

  1. Guru of Search גורו של חיפוש
    March 10th, 2009 04:26 10 מרס 2009 04:26
    1 1

    I like the idea of a collapsing script – but is this in line with Google's TOS? אני אוהב את הרעיון של תסריט קורסת - אבל זה עולה בקנה אחד עם TOS של גוגל?

Leave a Reply השאירו תגובה

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> באפשרותך להשתמש בתגים אלה: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. כדי להירשם הערות תכונה הושבת. To receive notification of latest comments posted, subscribe to כדי לקבל הודעה העדכנית של תגובות, כדי להירשם My Digital Life Comments RSS feed החיים שלי דיגיטליות תגובות RSS Feed or או register to receive הרשמה לקבלת new comments in daily email digest. תגובות חדש ב דוא"ל תקציר יומי.
Custom Search

New Articles מאמרים חדשים

Incoming Search Terms for the Article תנאי נכנסות חיפוש עבור מאמרים

google adsense a button to hide ads Google AdSense, כפתור כדי להסתיר מודעות - -- google ad sense js JS תחושת מודעות Google - -- how to hide google ads איך להסתיר את מודעות Google - -- collapsing blank space in adsense קורס שטח ריק AdSense - -- hide ad for 2.0 להסתיר מודעות עבור 2.0 - -- manage adds > does not show active adsense units לנהל מוסיף> אינו מציג יחידות AdSense פעיל - -- google_adsense_script google_adsense_script - -- hide ad on 2.0 להסתיר מודעות ב 2.0 - -- how to hide rapidshare links in adsense unit איך להסתיר קישורים rapidshare ביחידת AdSense - -- js button hidden ads google מודעות כפתור נסתר JS Google - -- collapse text ads by google מודעות טקסט התמוטטות על ידי Google - -- google ads javascript in internet explorer JavaScript Google מודעות ב-Internet Explorer - -- hide codes with no ad הסתרת קודי עם מודעות לא - -- hide and collapse להסתתר מפולת - -- hide ad on 2.0 להסתיר מודעות ב 2.0 - -- hide the ad for 2.0 להסתיר את המודעה עבור 2.0 - -- hide my ip from adsense Hide IP שלי מ AdSense - -- hiding adsense ads הסתרת מודעות AdSense - -- hide adsense ad under image להסתיר מודעות AdSense תחת תמונה - -- how to hide googles translation frame on website using javascript איך להסתיר Googles מסגרת תרגום באתר באמצעות JavaScript - -- how to hide adsense from main page איך להסתיר את AdSense מהדף הראשי - -- Javascript to hide google adsense Javascript כדי להסתיר את Google AdSense - -- why do google ads flash on and then disappear למה מודעות Google הבזק ולאחר מכן להיעלם - -- Collapsing ad units in blogger מתמוטט יחידות מודעה ב-Blogger - -- hide ip works for adsense להסתיר עובד IP עבור AdSense - -- The requested URL /google_adsense_script.html was not found on this server. כתובת האתר המבוקשת / google_adsense_script.html לא נמצא על שרת זה. - -- what is the code to hide advertisements מה הוא הקוד להסתיר פרסומות - --