Struct AdImpressionParameters
Helper struct to handle arguments for recording an AdImpression event.
Inherited Members
Namespace: Unity.Services.Analytics
Assembly: Unity.Services.Analytics.dll
Syntax
[Obsolete("Please create an AdImpressionEvent and use RecordEvent(...) instead.")]
public struct AdImpressionParameters
Fields
AdCompletionStatus
Whether the user watched the entire ad (COMPLETED), part of the ad (PARTIAL) or none of the ad (INCOMPLETE). Most applicable for interstitial ads which can be skipped by players
Declaration
public AdCompletionStatus AdCompletionStatus
Field Value
| Type | Description |
|---|---|
| AdCompletionStatus |
AdEcpmUsd
Optional. eCPM ("effective Cost Per Mille" - the revenue generated by 1000 impressions) in US Dollars. This value is often passed on a per-impression level by your mediation provider or ad network and used in ad LTV calculations.
Declaration
public double? AdEcpmUsd
Field Value
| Type | Description |
|---|---|
| double? |
AdHasClicked
Optional.
Declaration
public bool? AdHasClicked
Field Value
| Type | Description |
|---|---|
| bool? |
AdImpressionID
Optional.
Declaration
public string AdImpressionID
Field Value
| Type | Description |
|---|---|
| string |
AdLengthMs
Optional.
Declaration
public long? AdLengthMs
Field Value
| Type | Description |
|---|---|
| long? |
AdMediaType
Optional.
Declaration
public string AdMediaType
Field Value
| Type | Description |
|---|---|
| string |
AdProvider
The ad network that served the ad - ie, UNITY, IRONSOURCE. This value is often passed on a per-impression level by your mediation provider or ad network.
Declaration
public AdProvider AdProvider
Field Value
| Type | Description |
|---|---|
| AdProvider |
AdSource
Optional.
Declaration
public string AdSource
Field Value
| Type | Description |
|---|---|
| string |
AdStatusCallback
Optional.
Declaration
public string AdStatusCallback
Field Value
| Type | Description |
|---|---|
| string |
AdStoreDstID
Optional. The store the player is directed to after clicking the ad - for example, Google Play, App Store, Amazon.
Declaration
public string AdStoreDstID
Field Value
| Type | Description |
|---|---|
| string |
AdTimeCloseButtonShownMs
Optional.
Declaration
public long? AdTimeCloseButtonShownMs
Field Value
| Type | Description |
|---|---|
| long? |
AdTimeWatchedMs
Optional.
Declaration
public long? AdTimeWatchedMs
Field Value
| Type | Description |
|---|---|
| long? |
PlacementID
The unique identifier for the placement where the Ad appeared as integrated into the game.
Declaration
public string PlacementID
Field Value
| Type | Description |
|---|---|
| string |
PlacementName
The name of the placement as integrated in the game - for example, "Boosters" or "Daily Reward". This would correlate with the placement name configured in your ad network or mediation provider.
Declaration
public string PlacementName
Field Value
| Type | Description |
|---|---|
| string |
PlacementType
Optional. Indicates what type of ad is shown - for example, REWARDED, INTERSTITIAL or BANNER.
Declaration
public AdPlacementType? PlacementType
Field Value
| Type | Description |
|---|---|
| AdPlacementType? |
SdkVersion
Optional. The Ad SDK version you are using.
Declaration
public string SdkVersion
Field Value
| Type | Description |
|---|---|
| string |