AATInfeedBannerPlacement

@objc public protocol AATInfeedBannerPlacement {

    typealias AATRequestCompletion = ((_ view: AATBannerPlacementWrapperView?, _ error: AATBannerRequestError?) -> Void)

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

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

    /// Set 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
    /// - Parameters:
    ///   - request: the ``AATBannerRequest`` to be used
    ///   - completion: Completion result with ``AATBannerPlacementWrapperView`` or ``AATBannerRequestError``
    func requestAd(request: AATBannerRequest, completion: @escaping AATRequestCompletion)

    /// Cancel a specific ``AATBannerRequest``
    /// - Parameter request: The request to be canceled
    func cancel(request: AATBannerRequest)

    /// Manually Count an Ad Space
    func countAdSpace()
}

Last updated