Select your preferred scripting language. All code snippets will be displayed in this language.
class in UnityEngine.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.
CloseUnity Ads.
debugLevel | Controls the amount of logging output from the advertisement system. |
gameId | Returns the game identifier for the current platform. |
isInitialized | Returns whether the advertisement system is initialized successfully. |
isShowing | Returns whether an advertisement is currently being shown. |
isSupported | Returns if the current platform is supported by the advertisement system. |
testMode | Returns whether the testing mode is enabled. |
Initialize | Manually initializes the advertisement system. Normally this is done from editor, and you should only call this method if you have disabled UnityAds from the Editor settings in Connect window. |
IsReady | Returns whether an advertisement is ready to be shown. Zones are configured per game in the UnityAds admin site, where you can also set your default zone. |
Show | Show an advertisement in your project. |