MoPubClientPositioning

public static class MoPubClientPositioning

Enables hard-coding ad positions into the app (also known as client-side positioning).

Public Constants

public static int /NO_REPEAT

  • Description: Constant indicating that ad positions should not repeat.

Public Methods

public MoPubClientPositioning /addFixedPosition(int position)

  • Description: Specifies a fixed ad position. Returns this MoPubClientPositioning object for easy use in chained setters.

  • Parameters:

    • position: The ad position.

public MoPubClientPositioning /enableRepeatingPositions(int interval)

  • Description: Enables showing ads ad at a repeated interval. An integer corresponding to the interval is passed in.

  • Parameters:

    • interval: The frequency at which to show ads. Must be an integer greater than 1 or the constant NO_REPEAT. Returns this MoPubClientPositioning object for easy use in chained setters.

Last updated February 11, 2020

TWITTER, MOPUB, and the Bird logo are trademarks of Twitter, Inc. or its affiliates. All third party logos and trademarks included are the property of their respective owners.

© 2020 MoPub (a division of Twitter, Inc.)