Version: 5.6

AdvertisementSettings

class in UnityEditor.Advertisements

Switch to Manual

Description

Editor API for the Unity Services editor feature. Normally UnityAds is enabled from the Services window, but if writing your own editor extension, this API can be used.

Static Variables

enabledGlobal boolean for enabling or disabling the advertisement feature.
initializeOnStartupControls if the advertisement system should be initialized immediately on startup.
testModeControls if testing advertisements are used instead of production advertisements.

Static Functions

GetGameIdGets the game identifier specified for a runtime platform.
IsPlatformEnabledReturns if a specific platform is enabled.
SetGameIdSets the game identifier for the specified platform.
SetPlatformEnabledEnable the specific platform.