> For the complete documentation index, see [llms.txt](https://platform-business.gitbook.io/adx/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://platform-business.gitbook.io/adx/en/flutter/sdk-integration/initialize.md). Agents can also search and read this documentation through its [MCP server](https://platform-business.gitbook.io/adx/~gitbook/mcp).

# Initialize

### SDK Initialize <a href="#sdk-initialize" id="sdk-initialize"></a>

* Before loading ads, initialize the ADX Flutter SDK by calling `AdxSdk.initialize`. This process only needs to be executed once when the app launches.]
* Pass your issued ADX APP ID as the first parameter of the `initialize` method, and use either `AdxCommon.gdprTypeDirectNotRequired` or `AdxCommon.gdprTypePopupLocation` for the second parameter.

```dart
// Initialization method signature
static Future<AdxInitResult> initialize(
    String appId, 
    String gdprType, 
    List<String> testDevices) async
```

```dart
// Attempt to initialize ADX SDK
  // Use "AdxCommon.gdprTypePopupLocation" if you plan to service in the EEA region
  // Use "AdxCommon.gdprTypeDirectNotRequired" if you do not plan to service in the EEA region
AdxInitResult adxInitResult = await AdxSdk.initialize(
                                "<ADX_APP_ID>", 
                                AdxCommon.gdprTypePopupLocation, 
                                []);
```
