> 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/unity/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

* Before loading ads, initialize the ADX Unity SDK by calling `AdxSDK.Initialize`. This process only needs to be performed once when the app launches.
* When creating the `ADXConfiguration` object, pass your issued ADX APP ID into the `SetAppId()` method parameter. For the `SetGdprType()` method parameter, use either `GdprType.DIRECT_NOT_REQUIRED` or `GdprType.POPUP_LOCATION`.

```csharp
// Create ADXConfiguration object
  // Use "GdprType.POPUP_LOCATION" if you plan to service in the EEA region
  // Use "GdprType.DIRECT_NOT_REQUIRED" if you do not plan to service in the EEA region
ADXConfiguration adxConfiguration = new ADXConfiguration.Builder()
                                .SetAppId("<ADX_APP_ID>")
                                .SetGdprType(GdprType.DIRECT_NOT_REQUIRED).Build();

// Attempt to initialize ADX SDK
AdxSDK.Initialize(adxConfiguration, adxConsentState => {
  // Load ads after receiving the initialization completed callback
  Debug.Log(":::onADXConsentCompleted : " + adxConsentState);
});
```
