2023-02-10 15:13:26 +08:00

27 lines
957 B
Objective-C

#import <UnityAds/UnityAdsLoadError.h>
NS_ASSUME_NONNULL_BEGIN
/**
* The `UnityAdsLoadDelegate` protocol defines the required methods for receiving messages from UnityAds.load() method.
*/
@protocol UnityAdsLoadDelegate <NSObject>
/**
* Callback triggered when a load request has successfully filled the specified placementId with an ad that is ready to show.
*
* @param placementId The ID of the placement as defined in Unity Ads admin tools.
*/
- (void)unityAdsAdLoaded: (NSString *)placementId;
/**
* Called when load request has failed to load an ad for a requested placement.
* @param placementId The ID of the placement as defined in Unity Ads admin tools.
* @param error UnityAdsLoadError
* @param message A human readable error message
*/
- (void)unityAdsAdFailedToLoad: (NSString *)placementId
withError: (UnityAdsLoadError)error
withMessage: (NSString *)message;
@end
NS_ASSUME_NONNULL_END