קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
כדי ש-IMA SDK יוכל לשלוח את האותות הנכונים חזרה לשרת המודעות, הוא צריך לדעת מתי המודעות גלויות למשתמשים. מערכת IMA משתמשת בדיווח על Active View כדי למדוד את הניראות של המודעות. במדריך הזה נסביר איך דיווח על צפיות פעילות פועל עם IMA, וגם איך לוודא ש-SDK יכול לתעד בצורה נכונה אותות של זמינות לצפייה.
מערכת Active View מקבלת מדידות לגבי VideoStreamPlayer הזה (getLocationOnScreen ו-getGlobalVisibleRect).
אימות ש-SDK יכול למדוד את החשיפה של המודעות
כדי לבדוק אם ה-SDK יכול לתעד אותות של זמינות לצפייה, מחפשים בקשות רשת שנשלחות אל https://pagead2.googlesyndication.com/pcs/activeview ובודקים אם הפרמטר mtos מופיע. איך עוקבים אחרי המדידה של Active View
מקור הנתונים לדוגמה הבא זמין לבדיקה של ניראות:
מזהה מערכת ניהול התוכן: 2556080, מזהה הסרטון: tears-of-steel-omid
כדי לבדוק את השימוש בסטרימינג הזה, קודם צריך לבדוק ביומני הרשת אם ima-test-verification.js הורד, ואז אם נשלח אות ping אל https://pagead2.googlesyndication.com/pagead/gen_204 בתחילת ההפעלה של המודעה.
[null,null,["עדכון אחרון: 2025-08-21 (שעון UTC)."],[[["\u003cp\u003eThe IMA SDK utilizes Active View reporting to determine ad visibility and send signals to the ad server.\u003c/p\u003e\n"],["\u003cp\u003eActive View reporting relies on the \u003ccode\u003eStreamDisplayContainer\u003c/code\u003e and \u003ccode\u003eVideoStreamPlayer\u003c/code\u003e for viewability measurements.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can verify viewability signal capture by checking for \u003ccode\u003eactive_view_vide_measurable_impression\u003c/code\u003e in HTTP requests and the \u003ccode\u003emtos\u003c/code\u003e parameter.\u003c/p\u003e\n"],["\u003cp\u003eA sample stream (CMS ID: "2556080", video ID: "tears-of-steel-omid") is available for viewability testing.\u003c/p\u003e\n"],["\u003cp\u003eCustom video display implementations may require layout adjustments to ensure accurate viewability metrics are returned.\u003c/p\u003e\n"]]],["The IMA SDK utilizes Active View reporting to gauge ad viewability. This involves creating a `StreamDisplayContainer` with a `VideoStreamPlayer`, enabling Active View to measure it using `getLocationOnScreen` and `getGlobalVisibleRect`. Verification involves checking `HTTP` requests for `active_view_vide_measurable_impression` and the `mtos` parameter. A test stream (CMS ID: \"2556080\", video ID: \"tears-of-steel-omid\") is provided; monitor network logs for `ima-test-verification.js` download and a ping to `https://pagead2.googlesyndication.com/pagead/gen_204`.\n"],null,["# Verify Active View\n\nThe IMA SDK must be able to tell when ads are visible to users so that it can\nsend the correct signals back to the ad server. IMA uses\n[Active View reporting](//support.google.com/admanager/answer/3154105)\nto measure the viewability of ads. This guide explains how Active View\nreporting works with IMA, as well as how to verify that the SDK is able to\ncorrectly capture viewability signals.\n\nHow Active View reporting works with the IMA SDK\n------------------------------------------------\n\n1. The [`StreamDisplayContainer`](/interactive-media-ads/docs/sdks/android/dai/api/reference/com/google/ads/interactivemedia/v3/api/StreamDisplayContainer)\n is created by passing in an instance of\n [`VideoStreamPlayer`](/interactive-media-ads/docs/sdks/android/dai/api/reference/com/google/ads/interactivemedia/v3/api/player/VideoStreamPlayer).\n\n2. Active View receives measurements on that `VideoStreamPlayer`\n (`getLocationOnScreen` and `getGlobalVisibleRect`).\n\nVerifying that the SDK can measure ad viewability\n-------------------------------------------------\n\nTo check whether that the SDK is able to capture viewability signals, look for\nnetwork requests sent to `https://pagead2.googlesyndication.com/pcs/activeview`\nand check for the `mtos` parameter. For more information, see\n[Monitor Active View measurement](//support.google.com/admanager/answer/6123557).\nThe following sample stream is available for viewability testing:\n\n\u003cbr /\u003e\n\nCMS ID: \"2556080\", video ID: \"tears-of-steel-omid\"\n\nTo test using this stream, first check the network logs for\n`ima-test-verification.js` to be downloaded and then a ping fired to\n`https://pagead2.googlesyndication.com/pagead/gen_204` at the start of ad\nplayback.\n\n| **Note:** If you use your own video display and maintain full control over playback, you might need to modify your layout to ensure that the necessary metrics are being correctly returned. For additional assitance, reach out to us on the [IMA support forum](//groups.google.com/g/ima-sdk)."]]