Vendor Consent
Handle consent using AATKit vendor consent
Introduction
Usage
private void configureAATKit() {
AATKitConfiguration configuration = new AATKitConfiguration(this);
...
Consent consent = new VendorConsent(this);
configuration.setConsent(consent);
...
AATKit.init(configuration);
}
// VendorConsentDelegate implementation
@NonNull
@Override
public NonIABConsent getConsentForNetwork(@NonNull AdNetwork network) {
switch (network) {
case ADMOB:
return NonIABConsent.OBTAINED
break;
case APPLOVIN:
return NonIABConsent.WITHHELD
break;
default:
return NonIABConsent.UNKNOWN
}
}
@NonNull
@Override
public NonIABConsent getConsentForAddapptr() {
return NonIABConsent.OBTAINED;
}Last updated