mergemilitary/Assets/Plugins/ToukaGames/ToponSDK/applovin/AppLovinSDK.framework/Headers/MANativeAdAdapterDelegate.h

50 lines
1.4 KiB
C
Raw Normal View History

//
// MANativeAdAdapterDelegate.h
// AppLovinSDK
//
// Created by Thomas So on 6/15/21.
//
#import "MAAdapterDelegate.h"
#import "MAAdapterError.h"
#import "MANativeAd.h"
NS_ASSUME_NONNULL_BEGIN
/**
* Protocol for adapters to forward ad load and display events to the MAX SDK for native ads.
*/
@protocol MANativeAdAdapterDelegate<MAAdapterDelegate>
/**
* This method should called when an ad has been loaded.
*
* @param nativeAd Native ad container containing the assets from the mediated network's native ad.
* @param extraInfo Extra info passed from the adapter.
*/
- (void)didLoadAdForNativeAd:(MANativeAd *)nativeAd withExtraInfo:(nullable NSDictionary<NSString *, id> *)extraInfo;
/**
* This method is should be called when an ad could not be loaded.
*
* @param adapterError An error object that indicates the cause of ad failure.
*/
- (void)didFailToLoadNativeAdWithError:(MAAdapterError *)adapterError;
/**
* This method should be called when the adapter has successfully displayed an ad to the user.
* Note: Display callbacks are not forwarded to the publisher, however revenue events that are associated with the display event are.
*
* @param extraInfo Extra info passed from the adapter.
*/
- (void)didDisplayNativeAdWithExtraInfo:(nullable NSDictionary<NSString *, id> *)extraInfo;
/**
* This method should be called when the user has clicked adapter's ad.
*/
- (void)didClickNativeAd;
@end
NS_ASSUME_NONNULL_END