@property (nonatomic, weak) id<AdCelViewDelegate> delegate
Sets the delegate to respond to messages from AdCelView and thus respond to operations such as displaying of ad, failure to display ad and clicking on ad.
@property (nonatomic, readonly) BOOL adIsDisplayed
A boolean value that determines whether there is an ad displayed on the AdCelView.
Init the AdCelView instance.
+(id)attachToView:(UIView*)view position:(NSString*)position edgeInsets:(UIEdgeInsets)edgeInsets bannerSize:(NSString*)bannerSize delegate:(id<AdCelViewDelegate>)delegate
@view the parent view on which your banner ad will be displayed.
@position inside the parent @view. Can be one of the following:
ADCELSDK_BANNER_POSITION_TOP_LEFT
ADCELSDK_BANNER_POSITION_TOP_CENTER
ADCELSDK_BANNER_POSITION_TOP_RIGHT
ADCELSDK_BANNER_POSITION_CENTER_LEFT
ADCELSDK_BANNER_POSITION_CENTER
ADCELSDK_BANNER_POSITION_CENTER_RIGHT
ADCELSDK_BANNER_POSITION_BOTTOM_LEFT
ADCELSDK_BANNER_POSITION_BOTTOM
ADCELSDK_BANNER_POSITION_BOTTOM_RIGHT
@edgeInsets to specify additional edge insets of your banner.
@bannerSize can be one of predefined values:
ADCELSDK_BANNER_SIZE_300x50
ADCELSDK_BANNER_SIZE_320x50
ADCELSDK_BANNER_SIZE_728x90
ADCELSDK_BANNER_SIZE_768x90
ADCELSDK_BANNER_SIZE_300x250
It is strongly recommended to use only ADCELSDK_BANNER_SIZE_320x50 or ADCELSDK_BANNER_SIZE_768x90 to archive the maximum revenue.
@delegate to respond to messages from AdCelView and thus respond to operations such as displaying of ad, failure to display ad and clicking on ad.
-(NSTimeInterval)refreshInterval
Banner refresh interval in seconds. Default is 30. The zero value indicates that automatic refreshing is disabled and you should refresh ads manually by calling loadNextAd method.
-(void)setRefreshInterval:(NSTimeInterval)refreshInterval
Sets banner refresh interval.
@refreshInterval banner refresh interval in seconds. Default is 30. The zero value can be set to disable automatic refreshing and to refresh ads manually by calling loadNextAd method.
-(void)loadNextAd
Refreshes banner manually.
-(id)initWithBannerSize:(NSString*)bannerSize delegate:(id<AdCelViewDelegate>)delegate
Init the AdCelView instance.
@bannerSize can be one of predefined values:
ADCELSDK_BANNER_SIZE_300x50
ADCELSDK_BANNER_SIZE_320x50
ADCELSDK_BANNER_SIZE_728x90
ADCELSDK_BANNER_SIZE_768x90
ADCELSDK_BANNER_SIZE_300x250
It is strongly recommended to use only ADCELSDK_BANNER_SIZE_320x50 or ADCELSDK_BANNER_SIZE_768x90 to archive the maximum revenue.
@delegate to respond to messages from AdCelView and thus respond to operations such as displaying of ad, failure to display ad and clicking on ad.