Select your preferred scripting language. All code snippets will be displayed in this language.
class in UnityEditor.Advertisements
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
CloseEditor API for the Unity Connect editor feature. Normally UnityAds is enabled from the Connect window, but if writing your own editor extension, this API can be used.
enabled | Global boolean for enabling or disabling the advertisement feature. |
initializeOnStartup | Controls if the advertisement system should be initialized immediately on startup. |
testMode | Controls if testing advertisements are used instead of production advertisements. |
GetGameId | Gets the game identifier specified for a runtime platform. |
IsPlatformEnabled | Returns if a specific platform is enabled. |
SetGameId | Sets the game identifier for the specified platform. |
SetPlatformEnabled | Enable the specific platform. |