According to the official documentation (here), measuring viewability outside the ad iframe is not possible :
If you find a way to render your creative within the ad iframe by forcing a new iframe size, you could wrap your rendered creative inside a
div class="GoogleActiveViewInnerContainer" to tell Active View where to watch the viewability. Sadly and as detailed, it would only works within the ad iframe.
CLICK HERE to find out more related problems solutions.