MPConstants /3.0.0

@interface MPConstants : NSObject

This class defines all the standard flexible ad sizes publishers can use to set the maximum ad size.

Public Constants

extern CGSize const /MOPUB_BANNER_SIZE /+3.0.0-5.8.0

extern CGSize const /MOPUB_MEDIUM_RECT_SIZE /+3.0.0-5.8.0

extern CGSize const /MOPUB_LEADERBOARD_SIZE /+3.0.0-5.8.0

extern CGSize const /MOPUB_WIDE_SKYSCRAPER_SIZE /+3.0.0-5.8.0

CGSize const /kMPPresetMaxAdSizeMatchFrame /+5.8.0

  • Description: Constant that specifies the desired height for an ad to match that of the host view.

CGSize const /kMPPresetMaxAdSize50Height /+5.8.0

  • Description: Constant that specifies the desired height for an ad to be 50.

CGSize const /kMPPresetMaxAdSizeBanner90Height /+5.8.0

  • Description: Constant that specifies the desired height for a banner ad to be 90.

CGSize const /kMPPresetMaxAdSize90Height /+5.8.0

  • Description: Constant that specifies the desired height for an ad to be 90.

CGSize const /kMPPresetMaxAdSize250Height /+5.8.0

  • Description: Constant that specifies the desired height for an ad to be 250.

CGSize const /kMPPresetMaxAdSize280Height /+5.8.0

  • Description: Constant that specifies the desired height for an ad to be 280.

Last updated October 06, 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.)