ALAdLoadDelegate Protocol Reference

Conforms to NSObject
Declared in ALAdLoadDelegate.h

Overview

This protocol defines a listener for ad load events.

– adService:didLoadAd: required method

This method is invoked when an ad is loaded by the AdService.

- (void)adService:(ALAdService *)adService didLoadAd:(ALAd *)ad

Parameters

adService

AdService which loaded the ad. Will not be nil.

ad

Ad that was loaded. Will not be nil.

Discussion

This method is invoked when an ad is loaded by the AdService.

This method is invoked on the main UI thread.

Declared In

ALAdLoadDelegate.h

– adService:didFailToLoadAdWithError: required method

This method is invoked when an ad load fails.

- (void)adService:(ALAdService *)adService didFailToLoadAdWithError:(int)code

Parameters

adService

AdService which failed to load an ad. Will not be nil.

code

An error code corresponding with a constant defined in ALErrorCodes.h.

Discussion

This method is invoked when an ad load fails.

This method is invoked on the main UI thread.

Declared In

ALAdLoadDelegate.h