> For the complete documentation index, see [llms.txt](https://aatkit.gitbook.io/aatkit-cordova-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-cordova-integration/other/reference/functions/initwithconfiguration.md).

# initWithConfiguration

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

Initializes the AATKit library. Should be called once during application initialization before any other calls to AATKit.

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

```javascript
initWithConfiguration(configuration)
```

configuration **(REQUIRED)**

The JSON object containing configuration. Set parameters listed [here](/aatkit-cordova-integration/other/reference/other/configuration-json.md), otherwise AATKit uses default values.

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

```javascript
AATKitCordova.initWithConfiguration({
    "testModeAccountId": 74,
    "useGeoLocation": false,
    "consentRequired": true,
    "consent": {
        "type": "managedConsent"
    }
});
```
