> For the complete documentation index, see [llms.txt](https://aatkit.gitbook.io/aatkit-unity-integration/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://aatkit.gitbook.io/aatkit-unity-integration/other/reference/aatkitbinding/delegates/onobtainedadrules.md).

# OnObtainedAdRules

### 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);
}
```
