Disabling Ad Networks

Disable ad networks at runtime

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 AATAdNetwork to disable:

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

Enable Ad Network

To enable an ad network that has been disabled earlier, call the following method passing the AATAdNetwork to enable:

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

Last updated