AATAppOpenAdPlacement
@objc public protocol AATAppOpenAdPlacement {
/// Set the placement delegate that will listen to ad loading and display events.
var delegate: AATAppOpenPlacementDelegate? { get set }
/// Set the placement statistics delegate
var statisticsDelegate: AATStatisticsDelegate? { get set }
/// Set the placement impression delegate
var impressionDelegate: AATImpressionDelegate? { get set }
/// Start the automatic reloading of the placement.
///
/// When using this method, the placement will automatically once the current loaded ad has been shown.
///
func startAutoReload()
/// Stop the automatic reloading of the placement.
func stopAutoReload()
/// Requests placement reload.
///
/// Works only if automatic reloading is disabled. In this case, the placement will not request a new ad after showing the current loaded one.
///
func reload() -> Bool
/// Returns true if there is an ad loaded.
/// - Returns: True if there is an ad loaded.
func hasAd() -> Bool
/// Shows the fullscreen ad if ad is ready.
/// - Returns: True if showing fullscreen was successful, false otherwise.
func show() -> Bool
/// 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 }
/// Checks if the frequency cap has been reached.
/// - Returns: true if the frequency cap has been reached.
func isFrequencyCapReached() -> Bool
}
Last updated