> 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/start/initialization.md).

# Initialization

Use [initWithConfiguration](/aatkit-cordova-integration/other/reference/functions/initwithconfiguration.md) function to initialize AATKit. This operation should be run only once during the application lifecycle. You can pass JSON object as the parameter to set desired configuration. Please see the example below where AATKit is initialized with test mode using ID 74:

```javascript
AATKitCordova.initWithConfiguration({
    "testModeAccountId": 74
});
```

{% hint style="info" %}
Make sure to remove the `testModeAccountID` from your `configuration` object before you publish your app to the store. Otherwise, your app will not earn any ad revenue.
{% endhint %}

### Adding optional networks <a href="#markdown-header-adding-optional-networks" id="markdown-header-adding-optional-networks"></a>

Optional networks are disabled by default. If you want to include them to the build, follow instructions below.

#### Android <a href="#markdown-header-android" id="markdown-header-android"></a>

1. Find `plugins/aatkit-cordova-plugin/src/android/aatkit-cordova-plugin.gradle` file.
2. Comment out network dependencies which should be indluced to the build.
