46 lines
1.0 KiB
C
46 lines
1.0 KiB
C
|
|
//
|
||
|
|
// ALAdLoadDelegate.h
|
||
|
|
// AppLovinSDK
|
||
|
|
//
|
||
|
|
// Created by Basil on 3/23/12.
|
||
|
|
// Copyright © 2020 AppLovin Corporation. All rights reserved.
|
||
|
|
//
|
||
|
|
|
||
|
|
#import "ALAd.h"
|
||
|
|
|
||
|
|
NS_ASSUME_NONNULL_BEGIN
|
||
|
|
|
||
|
|
/**
|
||
|
|
* This service loads an ad.
|
||
|
|
*/
|
||
|
|
@class ALAdService;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* This protocol defines a listener for ad load events.
|
||
|
|
*/
|
||
|
|
@protocol ALAdLoadDelegate <NSObject>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* The SDK invokes this method when an ad is loaded by the AdService.
|
||
|
|
*
|
||
|
|
* The SDK invokes this method on the main UI thread.
|
||
|
|
*
|
||
|
|
* @param adService AdService that loaded the ad.
|
||
|
|
* @param ad Ad that was loaded.
|
||
|
|
*/
|
||
|
|
- (void)adService:(ALAdService *)adService didLoadAd:(ALAd *)ad;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* The SDK invokes this method when an ad load fails.
|
||
|
|
*
|
||
|
|
* The SDK invokes this method on the main UI thread.
|
||
|
|
*
|
||
|
|
* @param adService AdService that failed to load an ad.
|
||
|
|
* @param code An error code that corresponds to one of the constants defined in ALErrorCodes.h.
|
||
|
|
*/
|
||
|
|
- (void)adService:(ALAdService *)adService didFailToLoadAdWithError:(int)code;
|
||
|
|
|
||
|
|
@end
|
||
|
|
|
||
|
|
NS_ASSUME_NONNULL_END
|