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. |