XMediator::Api::XMediatorAds
XMediator is an ad mediation solution that enables integrating your app or game with many advertising partners. More...
Public Functions
Name | |
---|---|
void | StartWith(string appKey, InitSettings initSettings =null, Action< InitResult > initCallback =null) Initializes XMediator. |
void | SetConsentInformation(ConsentInformation consentInformation) Sets or updates consent information. This will replace all of the values previously set. |
void | SetUserProperties(UserProperties userProperties) Sets or updates user properties. This will replace all of the properties 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 Attributes
Name | |
---|---|
readonly InterstitialAds | Interstitial Entry point for displaying interstitial ads. |
readonly RewardedAds | Rewarded Entry point for displaying rewarded ads. |
readonly BannerAds | Banner Entry point for displaying banner ads. |
readonly CMPProviderService | CMPProvider Entry point for interacting with the CMP provider. |
Detailed Description
XMediator is an ad mediation solution that enables integrating your app or game with many advertising partners.
See: XMediatorAds.Banner, XMediatorAds.Interstitial, XMediatorAds.Rewarded
Just initialize the SDK and start showing ads.
Public Functions Documentation
function StartWith
static void StartWith(
string appKey,
InitSettings initSettings =null,
Action< InitResult > initCallback =null
)
Initializes XMediator.
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.
function SetConsentInformation
Sets or updates consent information. This will replace all of the values previously set.
Parameters:
- consentInformation A ConsentInformation object containing the updated information.
function SetUserProperties
Sets or updates user properties. This will replace all of the properties previously set.
Parameters:
- userProperties A UserProperties object containing the updated properties.
function SetPauseOnAdPresentation
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
Opens XMediator Debugging Suite
Public Attributes Documentation
variable Interstitial
Entry point for displaying interstitial ads.
variable Rewarded
Entry point for displaying rewarded ads.
variable Banner
Entry point for displaying banner ads.
variable CMPProvider
Entry point for interacting with the CMP provider.
Updated on 2024-11-07 at 18:31:49 +0000