# SetNetworkEnabled

### Overview <a href="#markdown-header-overview" id="markdown-header-overview"></a>

Allows to enable or disable selected ad networks. By default all networks are enabled.

### Syntax <a href="#markdown-header-syntax" id="markdown-header-syntax"></a>

```csharp
SetNetworkEnabled(network, enabled)
```

network **(REQUIRED)**

_int._ Ad network.

```
ADCOLONY = 0,
ADMOB = 1,
RTB2 = 2,
AMAZONHB = 3,
APPLOVIN = 4,
APPLOVINMAX = 5,
APPNEXUS = 6,
BLUESTACK = 7,
CRITEOSDK = 8,
DFP = 9,
DFPDIRECT = 10,
EMPTY = 11,
FACEBOOK = 12,
FEEDAD = 13,
GRAVITERTB = 14,
HUAWEI = 15,
INMOBI = 16,
IRONSOURCE = 17,
KIDOZ = 18,
MINTEGRAL = 19,
OGURY = 20,
PUBNATIVE = 21,
SMAATO = 22,
SMARTAD = 23,
SMARTADSERVERDIRECT = 24,
TAPPX = 25,
TEADS = 26,
UNITY = 27,
YOC = 28,
VUNGLE2 = 29
```

enabled **(REQUIRED)**

_bool._ Enable or disable ad network.

**returns&#x20;**_**void**_

### Examples <a href="#markdown-header-examples" id="markdown-header-examples"></a>

```csharp
SetNetworkEnabled(AATKitBinding.AdNetwork.ADMOB, false);
```
