MPConstants

@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

extern CGSize const /MOPUB_MEDIUM_RECT_SIZE

extern CGSize const /MOPUB_LEADERBOARD_SIZE

extern CGSize const /MOPUB_WIDE_SKYSCRAPER_SIZE

CGSize const /kMPPresetMaxAdSizeMatchFrame

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

CGSize const /kMPPresetMaxAdSize50Height

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

CGSize const /kMPPresetMaxAdSizeBanner90Height

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

CGSize const /kMPPresetMaxAdSize90Height

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

CGSize const /kMPPresetMaxAdSize250Height

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

CGSize const /kMPPresetMaxAdSize280Height

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

Last updated March 04, 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.)