Vendor Consent
Handle consent using AATKit vendor consent
Introduction
Usage
func configureAATKit() {
let configuration = AATConfiguration()
...
let consent = AATVendorConsent(delegate: self)
configuration.consent = consent
...
AATSDK.initAATKit(with: configuration)
}
// MARK: AATVendorConsentDelegate
func getConsentForNetwork(_ network: AATAdNetwork) -> NonIABConsent {
switch network {
case .INMOBI:
return .obtained
case .ADMOB:
return .withheld
case .APPLOVIN:
return .unknown
...
}
}
func getConsentForAddapptr() -> NonIABConsent {
return .obtained
}Last updated