Client-SideUnity SDKEvent Tracking

Ad Events

Track ad impressions and revenue from your monetization partners

Version:

Track ad impressions and revenue from your monetization partners.

Basic Usage

AudiencelabSDK.SendAdEvent(
    ad_id: "ad_interstitial_001",    // Ad unit identifier
    name: "Level Complete Ad",        // Ad name/description
    source: "AdMob",                  // Ad network
    watch_time: 30,                   // View duration in seconds
    reward: true,                     // Was this a rewarded ad?
    media_source: "Google",           // Media source
    channel: "CampaignA",             // Campaign/channel name
    value: 0.04,                      // Revenue amount
    currency: "USD",                  // ISO currency code
    dedupeKey: "unique_view_123"      // Optional: deduplication key
);

Parameters

Prop

Type

Cumulative Tracking

The SDK automatically tracks cumulative total_ad_value across all ad views. This value persists across app sessions.

When to Send

Send ad events after the ad completes (not when it starts) to accurately capture watch time and completion status.

Ad view events allow tracking of monetization performance per ad unit, creative, or channel.