docs.unity3d.com
    Show / Hide Table of Contents

    Struct AdImpressionParameters

    Helper struct to handle arguments for recording an AdImpression event.

    Namespace: Unity.Services.Analytics
    Syntax
    public struct AdImpressionParameters

    Fields

    AdCompletionStatus

    Indicates whether the Ad view was successful or not.

    Declaration
    public AdCompletionStatus AdCompletionStatus
    Field Value
    Type Description
    AdCompletionStatus

    AdEcpmUsd

    Optional. The estimated ECPM in USD, you should populate this value if you can.

    Declaration
    public double? AdEcpmUsd
    Field Value
    Type Description
    Nullable<Double>

    AdHasClicked

    Optional.

    Declaration
    public bool? AdHasClicked
    Field Value
    Type Description
    Nullable<Boolean>

    AdImpressionID

    Optional.

    Declaration
    public string AdImpressionID
    Field Value
    Type Description
    String

    AdLengthMs

    Optional.

    Declaration
    public long? AdLengthMs
    Field Value
    Type Description
    Nullable<Int64>

    AdMediaType

    Optional.

    Declaration
    public string AdMediaType
    Field Value
    Type Description
    String

    AdProvider

    The Ad SDK that provided the Ad.

    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.

    Declaration
    public string AdStoreDstID
    Field Value
    Type Description
    String

    AdTimeCloseButtonShownMs

    Optional.

    Declaration
    public long? AdTimeCloseButtonShownMs
    Field Value
    Type Description
    Nullable<Int64>

    AdTimeWatchedMs

    Optional.

    Declaration
    public long? AdTimeWatchedMs
    Field Value
    Type Description
    Nullable<Int64>

    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

    If there is a place in the game that can show Ads from multiple networks, there won’t be a single placementId. This field compensates for that by providing a single name for your placement. Ideally, this would be an easily human-readable name such as ‘revive’ or ‘daily bonus’. This value is here for reporting purposes only.

    Declaration
    public string PlacementName
    Field Value
    Type Description
    String

    PlacementType

    Optional. The placementType should indicate what type of Ad is shown. This value is here for reporting purposes only.

    Declaration
    public AdPlacementType? PlacementType
    Field Value
    Type Description
    Nullable<AdPlacementType>

    SdkVersion

    Optional. The Ad SDK version you are using.

    Declaration
    public string SdkVersion
    Field Value
    Type Description
    String
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023