Skip to content

XMediator::Api::XMediatorSdk

XMediator is an ad mediation solution that enables integrating your app or game with many advertising partners. Just initialize the SDK and start showing ads. Banner, Interstitial, Rewarded

Public Functions

Name
void Initialize(string appKey, InitSettings initSettings =null, Action< InitResult > initCallback =null, Action< MediationResult > mediationCallback =null)
Initializes XMediator Sdk.
void SetUserProperties(UserProperties userProperties)
Sets or updates user properties. This will replace all of the properties previously set.
void SetConsentInformation(ConsentInformation consentInformation)
Sets or updates consent information. This will replace all of the values previously set.
void SetPauseOnAdPresentation(bool shouldPause)
Indicates if the app should be paused if an ad ad is being presented.
void OpenDebuggingSuite()
Opens XMediator Debugging Suite

Public Functions Documentation

function Initialize

static void Initialize(
    string appKey,
    InitSettings initSettings =null,
    Action< InitResult > initCallback =null,
    Action< MediationResult > mediationCallback =null
)

Initializes XMediator Sdk.

Parameters:

  • appKey Your app or game app key. This is mandatory and cannot be null.
  • initSettings A InitSettings object.
  • initCallback An action to execute once the core of the SDK has been initialized.
  • mediationCallback An action to execute once the mediation partners of the SDK have been initialized.

function SetUserProperties

static void SetUserProperties(
    UserProperties userProperties
)

Sets or updates user properties. This will replace all of the properties previously set.

Parameters:

  • userProperties A UserProperties object containing the updated properties.

function SetConsentInformation

static void SetConsentInformation(
    ConsentInformation consentInformation
)

Sets or updates consent information. This will replace all of the values previously set.

Parameters:

function SetPauseOnAdPresentation

static void SetPauseOnAdPresentation(
    bool shouldPause
)

Indicates if the app should be paused if an ad ad is being presented.

Parameters:

  • shouldPause true if the app should be paused when a fullscreen ad is being presented. Default is false.

This method only works for iOS, as in Android the app is always paused when showing an ad.

function OpenDebuggingSuite

static void OpenDebuggingSuite()

Opens XMediator Debugging Suite


Updated on 2024-11-07 at 18:31:49 +0000