Skip to content

Page View

awallace87 edited this page Aug 23, 2016 · 1 revision

Page View

The Page View feature of the Yieldmo Android SDK allows publishers to define groups of Placement Views to be treated as part of a single page view.

This is useful in circumstances where multiple Placement Views are present in the same article view, or in situations with infinite scrolling.

Start Page View

In order to start a Page View, you need to use the following API:

Yieldmo.startPageView();

A page view should be started in the onCreate() override of the respective Activity or Fragment containing your main content and the multiple Placement View instances.

End Page View

Correspondingly, you will need to make the following call to end a Page View:

Yieldmo.endPageView();

It is important that you make start and end Page View calls symmetrically. So, in any Activity and/or Fragment that is starting a Page View, a corresponding Yieldmo.endPageView(); call should be made in the onDestroy() override.

Android-SDK-Beta

  • Home
  • [Key Terms](Key Terms)

Start Here


  • [Listening for Ad Events](Listening for Ad Events)
  • Additional Settings
  • [Page View](Page View)
  • [Custom Content Frame](Content Frame)
  • Proguard

Have a previous SDK?

  • [Upgrade Guide](Upgrade Guide)

Clone this wiki locally