Client-SideUnity SDK
Configuration
How to configure the AudienceLab Unity SDK
Version:
Initial Setup
- Navigate to AudienceLab SDK from the Unity menu to open the settings window
- Enter your authentication token provided by AudienceLab
- Click Verify to link your Unity project with your application
- Save the project and restart Unity to ensure proper initialization
SDK Settings Window
The SDK settings window is organized into three tabs:
Main Tab
| Setting | Description |
|---|---|
| isSDKEnabled | Master toggle for SDK functionality |
| SendStatistics | Enable/disable data collection |
| ShowDebugLog | Enable console logging for troubleshooting |
Privacy Tab
Configure device identifier collection for improved attribution:
| Mode | Description |
|---|---|
| Auto GAID | SDK automatically collects Google Advertising ID (recommended) |
| Manual GAID | You provide GAID via SetAdvertisingId() |
| Disabled | No GAID collection; relies on probabilistic matching |
Additional options:
- Auto-collect App Set ID: Collects Android App Set ID (does not require user permission)
Debug Tab
Configure the debug overlay for development and testing:
| Setting | Description |
|---|---|
| Enable Debug Overlay | Show/hide the debug overlay (Editor and Development builds only) |
| Max Events | Number of recent events to display in the overlay (default: 20) |
| Show Raw Identifiers | Display full device identifiers instead of truncated values |
| Toggle Key | Keyboard shortcut to toggle the overlay (default: F8) |
The debug overlay is only available in Unity Editor and Development builds. It will not appear in release builds.
ProGuard Configuration (Android)
For release builds with code obfuscation, add this ProGuard rule:
-keep class com.Geeklab.plugin.** { *; }Add this to your existing ProGuard configuration or create proguard-user.txt in Assets/Plugins/Android.