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

71 lines
2.5 KiB
Objective-C
Executable File

//
// ALAdService.h
// AppLovinSDK
//
// Created by Basil on 2/27/12.
// Copyright © 2020 AppLovin Corporation. All rights reserved.
//
#import "ALAd.h"
#import "ALAdSize.h"
#import "ALAdLoadDelegate.h"
#import "ALAdDisplayDelegate.h"
#import "ALAdVideoPlaybackDelegate.h"
NS_ASSUME_NONNULL_BEGIN
/**
* This class provides and displays ads.
*/
@interface ALAdService : NSObject
/**
* Fetches a new ad, of a given size, and notifies a supplied delegate on completion.
*
* @param adSize Size of an ad to load.
* @param delegate A callback that @c loadNextAd calls to notify of the fact that the ad is loaded.
*/
- (void)loadNextAd:(ALAdSize *)adSize andNotify:(id<ALAdLoadDelegate>)delegate;
/**
* Fetches a new ad, for a given zone, and notifies a supplied delegate on completion.
*
* @param zoneIdentifier The identifier of the zone to load an ad for.
* @param delegate A callback that @c loadNextAdForZoneIdentifier calls to notify of the fact that the ad is loaded.
*/
- (void)loadNextAdForZoneIdentifier:(NSString *)zoneIdentifier andNotify:(id<ALAdLoadDelegate>)delegate;
/**
* A token used for advanced header bidding.
*/
@property (nonatomic, copy, readonly) NSString *bidToken;
/**
* Fetches a new ad for the given ad token. The provided ad token must be one that was received from AppLovin S2S API.
*
* @warning This method is designed to be called by SDK mediation providers. Use @code -[ALAdService loadNextAdForZoneIdentifiers:andNotify:] @endcode for
* regular integrations.
*
* @param adToken Ad token returned from AppLovin S2S API.
* @param delegate A callback that @c loadNextAdForAdToken calls to notify that the ad has been loaded.
*/
- (void)loadNextAdForAdToken:(NSString *)adToken andNotify:(id<ALAdLoadDelegate>)delegate;
/**
* Fetch a new ad for any of the provided zone identifiers.
*
* @warning This method is designed to be called by SDK mediation providers. Use @code -[ALAdService loadNextAdForZoneIdentifiers:andNotify:] @endcode for
* regular integrations.
*
* @param zoneIdentifiers An array of zone identifiers for which an ad should be loaded.
* @param delegate A callback that @c loadNextAdForZoneIdentifiers calls to notify that the ad has been loaded.
*/
- (void)loadNextAdForZoneIdentifiers:(NSArray<NSString *> *)zoneIdentifiers andNotify:(id<ALAdLoadDelegate>)delegate;
- (instancetype)init __attribute__((unavailable("Access ALAdService through ALSdk's adService property.")));
+ (instancetype)new NS_UNAVAILABLE;
@end
NS_ASSUME_NONNULL_END