docs.unity3d.com
    Show / Hide Table of Contents

    Interface IMediationService

    The interface for Mediation features.

    Namespace: Unity.Services.Mediation
    Syntax
    public interface IMediationService

    Properties

    DataPrivacy

    Access the Data Privacy API, to register the user's consent status.

    Declaration
    IDataPrivacy DataPrivacy { get; }
    Property Value
    Type Description
    IDataPrivacy

    ImpressionEventPublisher

    Access the Impression Event Publisher API, to receive events when impression events are fired from ad objects.

    Declaration
    IImpressionEventPublisher ImpressionEventPublisher { get; }
    Property Value
    Type Description
    IImpressionEventPublisher

    SdkVersion

    Native Mediation SDK version this mediation service is operating upon.

    Declaration
    string SdkVersion { get; }
    Property Value
    Type Description
    String

    Methods

    CreateInterstitialAd(String)

    The Interstitial ads creator function.

    Declaration
    IInterstitialAd CreateInterstitialAd(string adUnitId)
    Parameters
    Type Name Description
    String adUnitId

    The Ad Unit Id for the ad unit you wish to show.

    Returns
    Type Description
    IInterstitialAd

    A new Interstitial Ad instance.

    CreateRewardedAd(String)

    The Rewarded ads creator function.

    Declaration
    IRewardedAd CreateRewardedAd(string adUnitId)
    Parameters
    Type Name Description
    String adUnitId

    The Ad Unit Id for the ad unit you wish to show.

    Returns
    Type Description
    IRewardedAd

    A new Rewarded Ad instance.

    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