Ad Quality
For better ad experience, AATKit added support for ad quality management in fullscreen and rewarded video formats using AppHarbr SDK.
Integration Steps:
Add AppHarbr SDK
Cocoapdos:
Add
pod 'AATKit/AppHarbr'
to your Podfile.
Create an ad quality manager instance:
let adQualityManager = AATAppHarbrManager(key: "<APPHARBR_KEY>")
Pass the ad quality manager to the AAT configuration:
let configuration = AATConfiguration() ... configuration.adQualityManager = adQualityManager ... AATSDK.initAATKit(with: configuration)
Faulty ads are automatically discarded, and AATKit will move to the next rule in the waterfall.
Optional: You can get notified of the faulty ads by making your class conform to
AATAdQualityDelegate
and pass it to the fullscreen/RV placement:placement?.adQualityDelegate = self
You will be notified via the following delegate methods:
@objc public protocol AATAdQualityDelegate { func didAdIncident(placement: AATPlacement, blockReasons: [String], reportReasons: [String], adNetworkSdk: AATAdNetwork) func didAdIncidentOnDisplay(placement: AATPlacement, blockReasons: [String], reportReasons: [String], adNetworkSdk: AATAdNetwork) -> Boolfunc didAdIncidentOnDisplay(placement: AATPlacement, blockReasons: [String], reportReasons: [String], adNetworkSdk: AATAdNetwork) func didAdVerified(placement: AATPlacement, adNetworkSdk: AATAdNetwork) func didAdNotVerified(placement: AATPlacement, error: Error, adNetworkSdk: AATAdNetwork) }
Last updated