# OnObtainedAdRules

&#x20;

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

Notifies that the AATKit has obtained ad rules.

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

```csharp
OnObtainedAdRules(fromTheServer)
```

fromTheServer **(REQUIRED)**

*bool* Indicates if the rules came from the server. It will return false if the currently used rules come from the `AATKit.setInitialRules` method or the cached rules are used.

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

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

```csharp
AATKitBinding.OnObtainedAdRulesDelegate += OnObtainedAdRules;

public void OnObtainedAdRules(bool fromTheServer)
{
    Debug.Log("onObtainedAdRules event: " + fromTheServer);
}
```
