MAAdDelegate Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | MAAdDelegate.h |
– didLoadAd:
required method
This method is called when a new ad has been loaded.
- (void)didLoadAd:(MAAd *)ad
Discussion
This method is called when a new ad has been loaded.
Declared In
MAAdDelegate.h
– didFailToLoadAdForAdUnitIdentifier:withErrorCode:
required method
This method is called when an ad could not be retrieved.
- (void)didFailToLoadAdForAdUnitIdentifier:(NSString *)adUnitIdentifier withErrorCode:(NSInteger)errorCode
Parameters
adUnitIdentifier |
Ad unit identifier for which the ad was requested. |
---|---|
errorCode |
An error code representing the failure reason. Common error codes are defined in |
Discussion
This method is called when an ad could not be retrieved.
Common error codes: 204 - no ad is available 5xx - internal server error negative number - internal errors
Declared In
MAAdDelegate.h
– didDisplayAd:
required method
This method is invoked when an ad is displayed.
- (void)didDisplayAd:(MAAd *)ad
Discussion
This method is invoked when an ad is displayed.
This method is invoked on the main UI thread.
Declared In
MAAdDelegate.h
– didHideAd:
required method
This method is invoked when an ad is hidden.
- (void)didHideAd:(MAAd *)ad
Discussion
This method is invoked when an ad is hidden.
This method is invoked on the main UI thread.
Declared In
MAAdDelegate.h
– didClickAd:
required method
This method is invoked when the ad is clicked.
- (void)didClickAd:(MAAd *)ad
Discussion
This method is invoked when the ad is clicked.
This method is invoked on the main UI thread.
Declared In
MAAdDelegate.h
– didFailToDisplayAd:withErrorCode:
required method
This method is invoked when the ad failed to displayed.
- (void)didFailToDisplayAd:(MAAd *)ad withErrorCode:(NSInteger)errorCode
Parameters
ad |
Ad that was just failed to display. |
---|---|
errorCode |
Error that indicates display failure. Common error codes are defined in |
Discussion
This method is invoked when the ad failed to displayed.
This method is invoked on the main UI thread.
Declared In
MAAdDelegate.h