Properties

delegate

@property (nonatomic, weak) id<AdToAppViewDelegate> delegate

Sets the delegate to respond to messages from AdToAppView and thus respond to operations such as displaying of ad, failure to display ad and clicking on ad.

adIsDisplayed

@property (nonatomic, readonly) BOOL adIsDisplayed

A boolean value that determines whether there is an ad displayed on the AdToAppView.

Class Methods

startWithAppId:modules:

Init the AdToAppView instance.

+(id)attachToView:(UIView*)view position:(NSString*)position edgeInsets:(UIEdgeInsets)edgeInsets bannerSize:(NSString*)bannerSize delegate:(id<AdToAppViewDelegate>)delegate

@view the parent view on which your banner ad will be displayed.

@position inside the parent @view. Can be one of the following:

  ADTOAPPSDK_BANNER_POSITION_TOP_LEFT
  ADTOAPPSDK_BANNER_POSITION_TOP_CENTER
  ADTOAPPSDK_BANNER_POSITION_TOP_RIGHT
  ADTOAPPSDK_BANNER_POSITION_CENTER_LEFT
  ADTOAPPSDK_BANNER_POSITION_CENTER
  ADTOAPPSDK_BANNER_POSITION_CENTER_RIGHT
  ADTOAPPSDK_BANNER_POSITION_BOTTOM_LEFT
  ADTOAPPSDK_BANNER_POSITION_BOTTOM
  ADTOAPPSDK_BANNER_POSITION_BOTTOM_RIGHT

@edgeInsets to specify additional edge insets of your banner.

@bannerSize can be one of predefined values:

  ADTOAPPSDK_BANNER_SIZE_300x50
  ADTOAPPSDK_BANNER_SIZE_320x50
  ADTOAPPSDK_BANNER_SIZE_728x90
  ADTOAPPSDK_BANNER_SIZE_768x90
  ADTOAPPSDK_BANNER_SIZE_300x250

It is strongly recommended to use only ADTOAPPSDK_BANNER_SIZE_320x50 or ADTOAPPSDK_BANNER_SIZE_768x90 to archive the maximum revenue.

@delegate to respond to messages from AdToAppView and thus respond to operations such as displaying of ad, failure to display ad and clicking on ad.

Instance Methods

refreshInterval

-(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.

setRefreshInterval:

-(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.

loadNextAd

-(void)loadNextAd

Refreshes banner manually.

initWithBannerSize:delegate:

-(id)initWithBannerSize:(NSString*)bannerSize delegate:(id<AdToAppViewDelegate>)delegate

Init the AdToAppView instance.

@bannerSize can be one of predefined values:

  ADTOAPPSDK_BANNER_SIZE_300x50
  ADTOAPPSDK_BANNER_SIZE_320x50
  ADTOAPPSDK_BANNER_SIZE_728x90
  ADTOAPPSDK_BANNER_SIZE_768x90
  ADTOAPPSDK_BANNER_SIZE_300x250

It is strongly recommended to use only ADTOAPPSDK_BANNER_SIZE_320x50 or ADTOAPPSDK_BANNER_SIZE_768x90 to archive the maximum revenue.

@delegate to respond to messages from AdToAppView and thus respond to operations such as displaying of ad, failure to display ad and clicking on ad.

Contact support