AATAsyncNativeAdPlacement
@available(iOS 13.0, *)
@objc
public protocol AATAsyncNativeAdPlacement: AATPlacement {
/// Set the placement delegate that will listen to ad display events
var delegate: AATAsyncNativePlacementDelegate? { get set }
/// Sets the placement statistics delegate
var statisticsDelegate: AATStatisticsDelegate? { get set }
/// Sets the placement impression delegate
var impressionDelegate: AATImpressionDelegate? { get set }
/// Sets the targeting information for the placement
///
/// Information provided for placement overrides targeting information overrides targeting information for application set by the ``AATSDK/setTargetingInfo(info:)``
var targetingInfo: [String: [String]]? { get set }
/// Sets the content targeting url for the placement.
///
/// Information provided for placement overrides targeting information for application set by the ``AATSDK/setContentTargetingUrl(targetingUrl:)``
var contentTargetingUrl: String? { get set }
/// Requests placement reload.
///
func reload() async -> AATNativeAdData?
/// Returns how many ads are currently loading for given native ad placement.
/// - Returns: Number of ads that are currently loading for given placement.
func getNumberOfCurrentlyLoadingNativeAds() -> Int
/// Returns true if there is an ad loaded.
/// - Returns: True if there is an ad loaded.
func hasAd() -> Bool
/// Manually Count an Ad Space
func reportAdSpace() -> Bool
/// Checks if the frequency cap has been reached.
/// - Returns: true if the frequency cap has been reached.
func isFrequencyCapReached() -> Bool
}
Last updated