ALAdSize Class Reference

Inherits from NSObject
Conforms to NSCopying
Declared in ALAdSize.h

Overview

This class defines a size of an ad to be displayed. It is recommended to use default sizes that are declared in this class (BANNER, INTERSTITIAL)

Ad Size Identification

  label

An NSString label which describes this ad size.

@property (copy, nonatomic, readonly) NSString *label

Discussion

An NSString label which describes this ad size.

Declared In

ALAdSize.h

Supported Ad Size Singletons

+ sizeBanner

Retrieve a singleton instance of the BANNER ad size object.

+ (alnonnull ALAdSize *)sizeBanner

Return Value

An instance of ALAdSize which represents the size BANNER.

Discussion

Retrieve a singleton instance of the BANNER ad size object.

Banners are typically 320x50 ads added to the bottom of the view.

Declared In

ALAdSize.h

+ sizeInterstitial

Retrieve a singleton instance of the INTERSTITIAL ad size object.

+ (alnonnull ALAdSize *)sizeInterstitial

Return Value

An instance of ALAdSize which represents the size INTERSTITIAL.

Discussion

Retrieve a singleton instance of the INTERSTITIAL ad size object.

Interstitials are full-screen ads with high click-through rates which will fully cover the UIViewController below.

Declared In

ALAdSize.h

+ sizeMRec

Retrieve a singleton instance of the MREC ad size object.

+ (alnonnull ALAdSize *)sizeMRec

Return Value

An instance of ALAdSize which represents the size MREC.

Discussion

Retrieve a singleton instance of the MREC ad size object.

MRECs are 320x250 (mostly square) advertisements.

Declared In

ALAdSize.h

+ sizeLeader

Retrieve a singleton instance of the LEADER ad size object.

+ (alnonnull ALAdSize *)sizeLeader

Return Value

An instance of ALAdSize which represents the size LEADER.

Discussion

Retrieve a singleton instance of the LEADER ad size object.

Leaderboard ads are 728x90 ads intended for iPads.

Declared In

ALAdSize.h

+ allSizes

Retrieve an NSArray of all available ad size singleton instances.

+ (alnonnull NSArray *)allSizes

Return Value

[NSArray arrayWithObjects: [ALAdSize sizeBanner], [ALAdSize sizeInterstitial], …, nil];

Discussion

Retrieve an NSArray of all available ad size singleton instances.

Declared In

ALAdSize.h