שאלות נפוצות בנושא Interactive Media Ads SDK של Google
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
- למה המודעות לא מופיעות שוב בכל הפורמטים?
-
תגי המודעות לבדיקה מוגדרים תמיד להחזיר מודעות לבקשות תקינות. הדבר
שנועדו להקל על השילוב וכדי שיהיה קל יותר לבדוק את האופן שבו הנגן
מבקש ומציג מודעות. עם זאת, מודעות לא תמיד זמינות בכל
לפורמט של האתר, החשבון או יחידת המודעות שלך. אם השילוב פועל
מתאימה לתג הבדיקה אבל לא לתג שלך, ייתכן שהסיבה היא
הבאים:
- שאתם מציגים לסביבה שלכם סרטונים בפורמט שאינו נתמך. לדוגמה,
אתם מציגים רק מודעות HTML5 ב-iOS או ב-Android.
- אם אתם משתמשים ב-Ad Manager, יכול להיות שאין כרגע מודעות שמטורגטות למזהה בעל התוכן הדיגיטלי שלכם. כמו כן, צריך לוודא שאישרת את המודעות הרלוונטיות
נכסי קריאייטיב ב-Ad Manager.
- אם אתם משתמשים ב-AdSense, הקריטריונים לטירגוט לאתר או לדף הבדיקה שלכם
לא מכילים מודעות פעילות. הסיבה הנפוצה ביותר היא שימוש באתרים פרטיים שלא נסרקו.
- אם אתם משתמשים בניהול שותפי רשת של Ad Exchange והערך של
descriptionURL
לא מוגדר או שהוא לא נמצא ברשימת הדומיינים שבבעלותכם או בניהולכם, המודעות לא יוצגו בדומיין הזה.
- בודקים את ערכי הסף ל-minCPM שמוגדרים ב-Ad Exchange Video. א'
עלות גבוהה יחסית לאלף חשיפות עשויה להוביל לשיעורי מילוי נמוכים מאוד. כדי לתקן את הבעיה, אפשר לנסות להסיר את minCPM או להסיר את הפרמטר של יחידת המודעות מבקשת הצגת המודעה (כלומר, slotname) כדי לוודא שהפרמטר הזה משפיע על שיעור המילוי.
- איך נראה
descriptionUrl
טוב?
-
כדי להיות אפקטיבי ביותר, התוכן בדף ש
descriptionUrl
צריכות להיות אוסף של מילים או ביטויים,
(1-3 פסקאות) מתארות בפועל את התוכן ואת התפקיד שלכם כשאתם מספקים אותו.
אחת השיטות שהצליחו בעבר היא לחבר
descriptionUrl
תוכן הדף באופן דינמי מבלוקים מוגדרים מראש.
למשל, כמה משפטים על התוכן, כמה משפטים על
הטובה ביותר, ולאחר מכן כמה קטעי טקסט מוגדרים מראש שמשויכים לכל
ערוץ AdSense (כמו 'בידור' או 'ספורט'). כתוצאה מכך, לכל קטע תוכן יש descriptionUrl
ייחודי למדי שמשויך אליו, שמספק גם מידע כללי (כמו תיאורי ז'אנר) וגם מידע ספציפי (תוכן לגבי התוכן עצמו).
קוד ה-HTML של המטא-נתונים צריך להיות פשוט, לדוגמה:
<html>
<head>
<title>Domain.com - Your tag line here!</title>
</head>
<body>
<h1>Descriptions</h1>
<h2>About this Content</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. ...</p>
<h2>About Domain.com</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. ...</p>
</body>
</html>
- למה מוצגת לי הודעת השגיאה "התגובה לבקשת מודעה לא מכילה סוג מודעה חוקי"?
- בדרך כלל השגיאה הזו מופיעה כי לא בוצע טירגוט של מודעות ל-
publisherId
הספציפי (במהלך פרק הזמן הנתון). התנאי הזה
יכולים להשתנות במהלך היום, או במשך כמה ימים, אחרי שהקמפיינים מתחילים או מסתיימים.
צריך לבדוק שהמודעה שאליה רוצים לטרגט לא פג תוקפה ושהקריטריונים לטירגוט המודעה נכונים.
כל עוד המודעות מוגשות, מתקבלות ומוצגות כראוי באמצעות publisherId
לבדיקה, תוכלו להיות בטוחים שהמודעות האלה מטופלות כראוי באמצעות publisherId
פעיל כשהן זמינות.
- האם יש לך תג מודעת וידאו של Ad Manager שאוכל להשתמש בו לבדיקה?
- תגים לדוגמה זמינים בדף תגים לדוגמה.
- האם להגדיר את
adSlotWidth
ואת adSlotHeight
כערכים זהים
בתור sz
בתג המודעה של Ad Manager?
- לא בהכרח.
adSlotWidth
וגם adSlotHeight
חייבים להיות מוגדרים לרוחב/גובה של הנגן או האזור שבו רוצים להציג את המודעות
מילוי. מערכת AdSense משתמשת בהם כדי לקבוע אילו מודעות זמינות ומתאימות למיקום הזה. צמד המפתח/ערך sz
בתג המודעה של Ad Manager הוא
פרמטר טירגוט, ולא בהכרח משפיע על הקריאייטיב שמוצג
(מידע נוסף מפורט בהמשך).
- תג המודעות לדוגמה נראה מצוין, אבל כשמחליפים אותו בתג המודעות שלי, לא מופיעה מודעה.
-
עליך לבדוק כדי לוודא שמישהו מועבר לתג המודעה שלך
בתהליך בקשה. הדרך הקלה ביותר לברר זאת היא לעקוב אחר תנועת ה-HTTP. אם המערכת מחזירה תמונה מסוג grey.gif בגודל 1x1 פיקסל בתוך בלוק עוגן של HTML, צריך לבדוק את הטירגוט ב-Ad Manager.
- אני רוצה לבקש מודעות עם אותו תג יותר מפעם אחת, אבל מוצגות לי מודעות רק בפעם הראשונה
בקשה. איך אפשר לפתור את הבעיה הזאת?
-
כשמבקשים מודעות יותר מפעם אחת, צריך ליידע את שרת המודעות
שמדובר בבקשות לגיטימיות, ולא בכפילויות מקריים. ערכת ה-SDK מבצעת את הפעולה הזו בשבילכם באמצעות שתי קריאות API מהירות:
- קוראים לפונקציה
destroy()
במכונה AdsManager
.
כך לא יוצגו מודעות פוסט-רול כשתבצעו את הקריאה הבאה ל-contentComplete()
. קיבלת AdsManager
חדש
כשתשלחו את הבקשה הבאה.
- התקשרות אל
contentComplete()
במכשיר AdsLoader
שלך
מכונה. הפעולה הזו מאפסת את ה-SDK כך שהבקשה החדשה להצגת מודעה לא תיראה כמו
כפילות של הפריט הקודם.
אחרי ביצוע שתי השיחות שצוינו למעלה, אפשר להתקשר למספר requestAds()
במספר
את המופע של AdsLoader
כדי להפעיל עוד קבוצה של מודעות
סרטון חדש.
- איך שולחים בקשה להצגת מודעות AdSense שכבת-על ומיקום מודעה מלא באמצעות IMA SDK?
-
כדי לבקש מודעות AdSense באמצעות ה-SDK, קודם צריך לקבל תג מודעה של AdSense. תוכל לקבל מידע נוסף בנושא ב-AdSense
לדף הסרטון. אחרי שתקבלו את התג, עליכם לבצע את השלבים הבאים כדי לשלוח בקשה להצגת מודעה שכבת-על או מודעה במיקום מודעה מלא:
מודעות שכבת-על
- ב
AdsRequest
, מגדירים את ה-ViewModes בתור
NORMAL
.
- בתג המודעה, מוסיפים את הפרמטר
overlay=1
.
מודעות במיקום מודעה מלא
- ב-
AdsRequest
, מגדירים את ViewModes בתור FULLSCREEN
.
- בתג המודעה, מוסיפים את הפרמטר
overlay=0
.
- כשאני לוחץ על המודעה, מופיעה הודעת השגיאה 'כתובת URL לא חוקית לקליק'. מה יכולה להיות הסיבה?
-
הסיבה הנפוצה ביותר לשגיאה הזו היא כתובת URL של קליקים לא תקינה. אם השגיאה הזו מופיעה, צריך לוודא ששיעור הקליקים
כתובת ה-URL מסומנת בתווי בריחה (escape) כראוי בתגובת VAST.
- האם יש דרך להגדיר שכל מודעת הווידאו תהיה ניתנת ללחיצה ב-SDK ל-Android וב-SDK ל-iOS?
- בכל שלב במעקב אחר קליקים בסרטון, חוויית הצפייה הרגילה
שמופיע סרטונים לנייד, הוא שהקשה על סרטון
משהה אותו או מציג את לחצני הנגן. כדי למנוע ממשתמשים ללחוץ בטעות על מודעות כשהם רוצים רק לגשת לפקדי הנגן, מערכת IMA משתמשת בלחצן מידע נוסף כדי לאפשר למשתמשים ללחוץ על מודעה ולקבל מידע נוסף על המוצר המפורסם.
- למה מוצגת השגיאה 'מסמך VAST ריק'?
- השגיאה הזו מתרחשת כשתג המודעה מחזיר מסמך VAST ריק, שמציין
שהמודעה לא הוצגה כראוי. לפנות למנהל החשבון
או נציג של שרת המודעות כדי לבדוק מדוע תג המודעות אינו פועל.
- האם אפשר לשנות את הגודל או הטקסט של התיבה דילוג על המודעה או של רכיבים אחרים בממשק המשתמש?
- בערכות ה-IMA SDK אין תמיכה בשינוי הפריסה, הגודל או התוכן של רכיבים בממשק המשתמש.
פרטים נוספים על רכיבי ממשק המשתמש זמינים במאמר
AdsManager.uiElements
.
- למה אי אפשר לשנות את עוצמת הקול של מודעה ב-iOS?
-
ב-iOS אין אפשרות להגדיר את עוצמת הקול באופן פרוגרמטי. אם משתמשים
ל-SDK של HTML5,
adsManager.setVolume()
אין השפעה. לכן, ה-iOS SDK לא מספק הגדרת עוצמת קול ב-IMAAdsManager.
- אפשר להשתמש בכמה שרשורים כדי לאתחל את ממשק המשתמש ולשנות אותו?
-
כל האתחול של ממשק המשתמש צריך להתבצע ב-thread הראשי. אחרי
של האתחול, אפשר לבחור להטמיע
הפעלת מודעה ברקע.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-08-31 (שעון UTC).
[null,null,["עדכון אחרון: 2025-08-31 (שעון UTC)."],[[["\u003cp\u003eThe test ad tags always return ads for valid requests to make integration and testing easier, however, live ads may not always be available for all ad formats, placements or targeting criteria.\u003c/p\u003e\n"],["\u003cp\u003eEnsure your \u003ccode\u003edescriptionUrl\u003c/code\u003e is set to a page on your site with 1-3 paragraphs accurately describing the content for better ad targeting.\u003c/p\u003e\n"],["\u003cp\u003eWhen requesting ads more than once using the same tag, ensure you reset the SDK by calling \u003ccode\u003edestroy()\u003c/code\u003e on \u003ccode\u003eAdsManager\u003c/code\u003e and \u003ccode\u003econtentComplete()\u003c/code\u003e on \u003ccode\u003eAdsLoader\u003c/code\u003e to avoid duplicate requests.\u003c/p\u003e\n"],["\u003cp\u003eThe "Ad response does not contain a valid ad type" error generally indicates that no ads are currently targeted to your publisher ID, time period or ad unit, ensure your ads and creatives are approved, targeted correctly and have not expired.\u003c/p\u003e\n"],["\u003cp\u003eThe IMA SDK does not allow for customization of UI elements like the "Skip Ad" button, and on iOS, programmatic volume control for ads is restricted by the operating system.\u003c/p\u003e\n"]]],[],null,["# Google Interactive Media Ads SDK FAQs\n\n- [Why am I not getting ads back for all formats?](#1)\n- [What does a good descriptionUrl look like?](#2)\n- [Why am I receiving the error \"Ad response does not contain a valid ad type\"?](#3)\n- [Do you have an Ad Manager video ad tag that I can use for testing?](#4)\n- [Should I set the adSlotWidth and adSlotHeight to the same values\n as the sz in my Ad Manager ad tag?](#5)\n- [The demo ad tag looks great, but when I switch it with my ad tag,\n no ad appears.](#7)\n- [I want to request ads using the same tag more than once, but I\n only get ads for my first request. How do I fix this?](#8)\n- [How do I request overlay and full slot AdSense ads using the IMA\n SDK?](#9)\n- [I'm getting an \"Invalid clickthrough URL\" error when I click on my\n ad. What could be the cause?](#10)\n- [In the Android and iOS SDKs, is there a way to make the entire video\n ad clickable?](#11)\n- [Why do I see a \"VAST Document Empty\" error?](#12)\n- [Can I change the size/text of the \"Skip Ad\" box or other UI elements?](#13)\n- [Why can't I change an ad's volume on iOS?](#16)\n- [Can I use multiple threads to initialize and manipulate the UI?](#18)\n\n*** ** * ** ***\n\nWhy am I not getting ads back for all formats?\n:\n The test ad tags are set up to always return ads for valid requests. This is\n meant to facilitate integration and make it easier to test how your player\n requests and renders ads. However, ads are not always available in every\n format for your site, account, or ad unit. If your integration is working\n properly for the test tag but not for your own tag, the cause may be one of\n the following:\n\n - You're serving videos of an unsupported format to your environment. For example, you're serving only HTML5 ads to iOS or Android.\n - If you're using Ad Manager, your publisher ID may not have any ads targeted to it at this time. Also, ensure that you have approved the relevant ads and creatives in Ad Manager.\n - If you're using AdSense, the targeting criteria for your site or test page may not have any active advertisements. The most common cause is the use of private, uncrawled websites.\n - If you're using Ad Exchange Network Partner Management and `descriptionURL` is not set or is not on the owned or operated domains management list, ads do not serve to this.\n - Check the *minCPM* thresholds defined in Ad Exchange Video. A fairly high CPM may result in very low fill rates. To correct this, try either removing the minCPM or removing the ad unit parameter from the ad request (i.e., slotname) to verify whether this is affecting the fill rate.\n\nWhat does a good `descriptionUrl` look like?\n:\n To be most effective, the content of the page that `descriptionUrl`\n points to shouldn't be a collection of words or phrases but rather\n 1-3 paragraphs actually describing the content and your role in providing it.\n One method that has been successful in the past is to stitch together\n `descriptionUrl` page content dynamically from predefined blocks.\n For example, a few sentences about the content, a few sentences about your\n site's offering, and then a few predefined snippets associated with each\n AdSense channel (like \"Entertainment\" or \"Sports\"). As a result, each piece of\n content has a reasonably distinct `descriptionUrl` associated with\n it that provides both general information (such as genre descriptors) as well\n as specific information (content about the content directly).\n\n This metadata HTML should be simple, for example:\n\n ```text\n \u003chtml\u003e\n \u003chead\u003e\n \u003ctitle\u003eDomain.com - Your tag line here!\u003c/title\u003e\n \u003c/head\u003e\n \u003cbody\u003e\n \u003ch1\u003eDescriptions\u003c/h1\u003e\n \u003ch2\u003eAbout this Content\u003c/h2\u003e\n \u003cp\u003eLorem ipsum dolor sit amet, consectetur adipiscing elit. ...\u003c/p\u003e\n \u003ch2\u003eAbout Domain.com\u003c/h2\u003e\n \u003cp\u003eLorem ipsum dolor sit amet, consectetur adipiscing elit. ...\u003c/p\u003e\n \u003c/body\u003e\n \u003c/html\u003e\n \n ```\n\nWhy am I receiving the error \"Ad response does not contain a valid ad type\"?\n: This error generally appears because no ads have been targeted to the\n specific `publisherId` (for the given time period). This condition\n may vary throughout the day, or over several days as campaigns begin and end.\n You should check that the ad you wish to target has not expired and that the\n ad targeting criteria are correct.\n As long as ads are properly requested, received, and rendered using\n the test `publisherId`, you can be sure that these ads are\n properly handled using your live `publisherId` when the ads are\n available.\n\nDo you have an Ad Manager video ad tag that I can use for testing?\n: Sample tags are available on the [sample tags](/interactive-media-ads/docs/sdks/ios/client-side/tags) page.\n\nShould I set the `adSlotWidth` and `adSlotHeight` to the same\nvalues as the `sz` in my Ad Manager ad tag?\n: Not necessarily. The `adSlotWidth` and `adSlotHeight`\n must be set to the width/height of the player or area you want your ads to\n fill. They are used by AdSense to determine which ads are available to fit\n into that space. The `sz` key/value pair in your Ad Manager ad tag is\n a targeting parameter and does not necessarily affect the creative served\n (more information below).\n\nThe demo ad tag looks great, but when I switch it with my ad tag, no ad appears.\n:\n Check to ensure that something is trafficked to the ad tag you are\n requesting. The easiest way to find out is to watch the HTTP traffic. If a\n **1x1 pixel grey.gif** image is returned within an HTML anchor block,\n then you need to check your targeting in Ad Manager.\n\nI want to request ads using the same tag more than once, but I only get ads for my first\nrequest. How do I fix this?\n:\n When you request ads more than once, you need to let the ad server know\n that these are legitimate requests, and not accidental duplicates. The SDK\n does this for you with two quick API calls:\n\n 1. Call `destroy()` on your `AdsManager` instance. This prevents any post-rolls from playing when you make the below call to `contentComplete()`. You get a new `AdsManager` when you make your next request.\n 2. Call `contentComplete()` on your `AdsLoader` instance. This resets the SDK so the new ad request doesn't look like a duplicate of the previous one.\n\n\n After making the two calls above, you can call `requestAds()` on\n your `AdsLoader` instance to get another set of ads to play for your\n new video.\n\nHow do I request overlay and full slot AdSense ads using the IMA SDK?\n\n: To request AdSense ads using the SDK, you need to first obtain an AdSense\n ad tag. You can learn more about that on the [AdSense\n for Video page](//support.google.com/adsense/answer/1705822). Once you have your tag, you need to take the following\n steps to make either an overlay or a full slot ad request:\n\n **Overlay ads**\n\n 1. In your `AdsRequest`, set your ViewModes to `NORMAL`.\n 2. In your ad tag, add the parameter `overlay=1`.\n\n **Full slot ads**\n\n 1. In your `AdsRequest`, set your ViewModes to `FULLSCREEN`.\n 2. In your ad tag, add the parameter `overlay=0`.\n\nI'm getting an \"Invalid clickthrough URL\" error when I click on my ad. What could be the cause?\n:\n The most common cause for this error is an improperly escaped clickthrough\n URL. If you're seeing this error, check to make sure that your clickthrough\n URL is properly escaped in your VAST response.\n\nIn the Android and iOS SDKs, is there a way to make the entire video ad clickable?\n: As far as whole-video click tracking goes, the standard viewer experience\n for mobile video that has emerged is that tapping on a video either\n pauses it or brings up the player controls. To avoid users\n unintentionally clicking on ads when they really just want access to the\n player controls IMA uses the **Learn more** button to let\n users click on an ad and learn more about the product being advertised.\n\nWhy do I see a \"VAST Document Empty\" error?\n: This error occurs when the ad tag returns an empty VAST document, indicating\n that the ad was not served properly. Talk to your account manager\n or ad server representative to see why your ad tag is not working.\n\nCan I change the size/text of the **Skip Ad** box or other UI elements?\n: The IMA SDKs do not support changing the layout, size, or content of UI elements.\n For more details on UI elements, see `AdsManager.uiElements`.\n\nWhy can't I change an ad's volume on iOS?\n:\n iOS does not allow you to set volume programmatically. If you're using the\n HTML5 SDK, `adsManager.setVolume()` has no effect. The iOS SDK does not\n provide a volume setter on the IMAAdsManager for this reason.\n\nCan I use multiple threads to initialize and manipulate the UI?\n:\n\n All initialization of the UI must be done on the main thread. After\n initialization, you can choose to implement\n [Background Ad Playback](/interactive-media-ads/docs/sdks/ios/background_ad_playback)."]]