Để thảo luận và đưa ra ý kiến phản hồi về các sản phẩm của chúng tôi, hãy tham gia kênh Discord chính thức của Ad Manager trong máy chủ Cộng đồng quảng cáo và đo lường của Google.
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
SDK IMA phải có khả năng xác định thời điểm người dùng nhìn thấy quảng cáo để có thể gửi tín hiệu chính xác trở lại máy chủ quảng cáo. IMA sử dụng báo cáo Chế độ xem đang kích hoạt để đo lường khả năng xem của quảng cáo. Hướng dẫn này giải thích cách hoạt động của báo cáo Chế độ xem đang kích hoạt với IMA, cũng như cách xác minh rằng SDK có thể thu thập chính xác các tín hiệu về khả năng xem.
Cách hoạt động của báo cáo Chế độ xem đang kích hoạt với SDK IMA
Nhà xuất bản chỉ định một phần tử video khi tạo StreamManager.
Miễn là phần tử video có thể xem và không bị che khuất khi tạo StreamRequest, Active View sẽ nhận được thông tin đo lường về phần tử đó.
Xác minh rằng SDK có thể đo lường khả năng xem quảng cáo
Để kiểm tra xem SDK có thể thu thập tín hiệu về khả năng xem hay không, hãy tìm các yêu cầu mạng được gửi đến https://pagead2.googlesyndication.com/pcs/activeview và kiểm tra tham số mtos. Để biết thêm thông tin, hãy xem bài viết Giám sát chế độ đo lường Chế độ xem đang kích hoạt.
Bạn có thể sử dụng luồng mẫu sau đây để kiểm thử khả năng xem:
Để kiểm thử việc sử dụng luồng này, trước tiên, hãy kiểm tra nhật ký mạng để tải ima-test-verification.js xuống, sau đó ping được gửi đến https://pagead2.googlesyndication.com/pagead/gen_204 khi bắt đầu phát quảng cáo.
[null,null,["Cập nhật lần gần đây nhất: 2025-08-21 UTC."],[[["\u003cp\u003eThe IMA SDK leverages Active View reporting to determine ad visibility and send corresponding signals to the ad server.\u003c/p\u003e\n"],["\u003cp\u003ePublishers need to designate a video element during StreamManager creation for Active View to measure viewability.\u003c/p\u003e\n"],["\u003cp\u003eVerifying successful viewability signal capture involves checking for specific parameters within HTTP requests and network logs.\u003c/p\u003e\n"],["\u003cp\u003eA sample stream with CMS ID "2556080" and video ID "tears-of-steel-omid" is available for testing viewability implementation.\u003c/p\u003e\n"],["\u003cp\u003ePublishers with custom video displays might need layout adjustments to ensure accurate metric returns and can consult the IMA support forum for assistance.\u003c/p\u003e\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 publisher designates a video element when creating the\n [`StreamManager`](/interactive-media-ads/docs/sdks/html5/dai/reference/js/StreamManager).\n\n2. As long as the video element is viewable and unobstructed when the\n [`StreamRequest`](/interactive-media-ads/docs/sdks/html5/dai/reference/js/StreamRequest)\n is made, Active View receives measurements on that element.\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)."]]