Select platform: [HTML5](https://developers.google.com/ad-manager/dynamic-ad-insertion/sdk/html5/viewability "View this page for the HTML5 platform docs.") [Android](https://developers.google.com/ad-manager/dynamic-ad-insertion/sdk/android/viewability "View this page for the Android platform docs.") [iOS](https://developers.google.com/ad-manager/dynamic-ad-insertion/sdk/ios/viewability "View this page for the iOS platform docs.")

<br />

The IMA SDK must be able to tell when ads are visible to users so that it can
send the correct signals back to the ad server. IMA uses
[Active View reporting](https://support.google.com/admanager/answer/3154105)
to measure the viewability of ads. This guide explains how Active View
reporting works with IMA, as well as how to verify that the SDK is able to
correctly capture viewability signals.

## How Active View reporting works with the IMA SDK

1. The [`StreamDisplayContainer`](https://developers.google.com/interactive-media-ads/docs/sdks/android/dai/api/reference/com/google/ads/interactivemedia/v3/api/StreamDisplayContainer)
   is created by passing in an instance of
   [`VideoStreamPlayer`](https://developers.google.com/interactive-media-ads/docs/sdks/android/dai/api/reference/com/google/ads/interactivemedia/v3/api/player/VideoStreamPlayer).

2. Active View receives measurements on that `VideoStreamPlayer`
   (`getLocationOnScreen` and `getGlobalVisibleRect`).

## Verifying that the SDK can measure ad viewability

To check whether that the SDK is able to capture viewability signals, look for
network requests sent to `https://pagead2.googlesyndication.com/pcs/activeview`
and check for the `mtos` parameter. For more information, see
[Monitor Active View measurement](https://support.google.com/admanager/answer/6123557).
The following sample stream is available for viewability testing:

<br />

CMS ID: "2556080", video ID: "tears-of-steel-omid"

To test using this stream, first check the network logs for
`ima-test-verification.js` to be downloaded and then a ping fired to
`https://pagead2.googlesyndication.com/pagead/gen_204` at the start of ad
playback.

> [!NOTE]
> **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 assistance, reach out through the [Ad Manager Help Center](https://support.google.com/admanager/contact/contact_us_ima_sdk) for support.