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.
CloseFor some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
CloseUnity Ads.
debugMode | 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. |
version | Returns the current Unity Ads version. |
GetPlacementState | Returns the placement state. |
Initialize | Manually initializes the advertisement system. Normally this is done from editor, and you should only call this method if you are using UnityAds with automatic initialization disabled. |
IsReady | Returns whether an advertisement is ready to be shown. Placements are configured per game in the UnityAds admin site, where you can also set your default placement. |
SetMetaData | Sets various metadata for Unity Ads. |
Show | Show an advertisement in your project. |