AATAsyncInfeedBannerPlacement

@available(iOS 13.0, *)
@objc
public protocol AATAsyncInfeedBannerPlacement: AATPlacement {
    // MARK: Delegates

    /// Set the placement delegate that will listen to ad loading and display events
    var delegate: AATInfeedBannerPlacementDelegate? { get set }

    /// Sets the placement statistics delegate
    var statisticsDelegate: AATStatisticsDelegate? { get set }

    /// Sets the placement impression delegate
    var impressionDelegate: AATImpressionDelegate? { get set }

    /// Sets the placement collapsible banner options
    var collapsableBannerOptions: AATCollapsibleBannerOptions? { get set }
    /// Request banner ad from the placement
    /// - Parameter request: the ``AATBannerRequest`` to be used
    /// - Returns: ``AATBannerPlacementWrapperView``
    func requestAd(request: AATBannerRequest) async -> AATBannerPlacementWrapperView?

    /// Manually Count an Ad Space
    func countAdSpace()
    
    /// Enable saving creative history
    /// - Parameter size: The max size of the history to be saved
    func enableCreativeHistory(size: Int)

    /// Get the saved creative history
    /// - Parameter completion: Completion block with the creative history
    func getCreativeHistory(completion: @escaping ([AATPlacementHistoryInfo]) -> Void)
}

Last updated