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
| Parameter | Meaning | Example |
|---|---|---|
source | The ad network that served the event | "admob", "meta_audience_network" |
mediaSource | The mediation platform providing the callback | "ironsource", "applovin_max" |
Cumulative Tracking
The SDK automatically tracks total_ad_value across ad events.