Intersection Based Refresh

AdsCoordinator.useIntersectionManager exposes the IntersectionManager Class used by AdsCoordinator.lazyRefreshAds so you can implement your custom logic around Ads DOM enters and leaves the viewport

Example

Clicking this button will schedule a lazyRefreshAds

  • After the Ad becomes viewable, start a 5 seconds timer to trigger refreshAds
  • After the Ad DOM leaves the viewport cancel the pending timer.
  • After the Ad DOM enters the viewport and there is no pending lazyRefresh and pending viewability, start a 5 seconds timer to trigger refreshAds

Scroll Down, ads are placed out of view on purpose