This version of Unity is unsupported.

AdvertisementSettings

class in UnityEditor.Advertisements

/

Implemented in:UnityEditor

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 Properties

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 Methods

GetGameIdGets the game identifier specified for a runtime platform.
GetPlatformGameIdGets the game identifier specified for a runtime platform.
SetGameIdSets the game identifier for the specified platform.
SetPlatformGameIdSets the game identifier for the specified platform.