Client SDKs

Ad Events

Track ad impressions and revenue with the iOS SDK

Track ad impressions and ad-related value with the iOS SDK.

Basic Usage

AudienceLabSDK.sendAdEvent(
    adId: "rewarded_video_main",
    name: "Main Menu Rewarded",
    source: "admob",
    watchTime: 30.0,
    reward: true,
    mediaSource: "ironsource",
    channel: "rewarded_video",
    value: 0.0125,
    currency: "USD"
)

Parameters

Prop

Type

source vs mediaSource

ParameterMeaningExample
sourceThe ad network that served the event"admob", "meta_audience_network"
mediaSourceThe mediation platform providing the callback"ironsource", "applovin_max"

Cumulative Tracking

The SDK automatically tracks total_ad_value across ad events.