Disabling Ad Networks

Disable ad networks at runtime

circle-info

Disabling ad networks at compile time using Cocoapods or Swift Package Manager will always override runtime settings (since the ad network’s SDK won’t be present physically).

Disable Ad Network

To disable ad networks at runtime, call the following method passing the AATAdNetworkarrow-up-right to disable:

AATSDK.setNetworkEnabled(network: <AATAdNetwork>, enabled: false)
circle-exclamation

Enable Ad Network

To enable an ad network that has been disabled earlier, call the following method passing the AATAdNetworkarrow-up-right to enable:

AATSDK.setNetworkEnabled(network: <AATAdNetwork>, enabled: true)

Last updated