ה-IMA SDK צריך לדעת מתי המודעות גלויות למשתמשים כדי שהוא יוכל לשלוח את האותות הנכונים בחזרה לשרת המודעות. IMA משתמש בדיווח של Active View כדי למדוד את הניראות של מודעות. במדריך הזה מוסבר איך דיווח על נתוני 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, ואז אם נשלח פינג אל https://pagead2.googlesyndication.com/pagead/gen_204 בתחילת ההפעלה של המודעה.
[null,null,["עדכון אחרון: 2026-03-25 (שעון UTC)."],[],["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"]]