Client-SideUnity SDK

Configuration

How to configure the AudienceLab Unity SDK

Version:

Initial Setup

  1. Navigate to AudienceLab SDK from the Unity menu to open the settings window
  2. Enter your authentication token provided by AudienceLab
  3. Click Verify to link your Unity project with your application
  4. Save the project and restart Unity to ensure proper initialization

SDK Settings Window

The SDK settings window is organized into three tabs:

Main Tab

SettingDescription
isSDKEnabledMaster toggle for SDK functionality
SendStatisticsEnable/disable data collection
ShowDebugLogEnable console logging for troubleshooting

Privacy Tab

Configure device identifier collection for improved attribution:

ModeDescription
Auto GAIDSDK automatically collects Google Advertising ID (recommended)
Manual GAIDYou provide GAID via SetAdvertisingId()
DisabledNo 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:

SettingDescription
Enable Debug OverlayShow/hide the debug overlay (Editor and Development builds only)
Max EventsNumber of recent events to display in the overlay (default: 20)
Show Raw IdentifiersDisplay full device identifiers instead of truncated values
Toggle KeyKeyboard 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.