UnityAds
2.0
Generated by Doxygen 1.8.11
Wed Jul 6 2016 15:00:31
CONTENTS 1
Contents
1 Namespace Documentation
1.1 UnityEngine Namespace Reference
Namespaces
1.2 UnityEngine.Advertisements Namespace Reference
Classes
• class Advertisement
Unity Ads Asset Store Package
• class MetaData
Class for sending various metadata to UnityAds.
• class ShowOptions
Collection of options that can be passed to [[Advertisements.Show]] to modify advertisement behaviour.
Enumerations
1.2.1 Enumeration Type Documentation
1.2.1.1 enum UnityEngine.Advertisements.PlacementState [strong]
Various states that Unity Ads placements can be in.
Enumerator
Ready Placement is ready to show ads.
NotAvailable Placement is not available.
Disabled Placement has been disabled.
Waiting Placement is waiting to be ready.
NoFill Placement has no advertisements to show.
1.2.1.2 enum UnityEngine.Advertisements.ShowResult [strong]
ShowResult is passed to [[ShowOptions.resultCallback]] after the advertisement has completed.
Enumerator
Failed Indicates that the advertisement failed to complete.
Skipped Indicates that the advertisement was skipped.
Finished Indicates that the advertisement completed successfully.
Generated on Wed Jul 6 2016 15:00:31 for UnityAds by Doxygen
2 CONTENTS
2 Class Documentation
2.1 UnityEngine.Advertisements.Advertisement Class Reference
Unity Ads Asset Store Package
Static Public Member Functions
• static void Initialize (string gameId)
Initializes the advertisement system.
• static void Initialize (string gameId, bool testMode)
Initialize the advertisement system with specified gameId and testMode.
• static bool IsReady ()
Returns whether an advertisement is ready to be shown for the default placement. Placements are configured per
game in the UnityAds admin site, where you can also set your default placement.
• static bool IsReady (string placementId)
Returns whether an advertisement is ready to be shown for specified placement. Placements are configured per
game in the UnityAds admin site.
• static PlacementState GetPlacementState ()
Returns the state of the default placement.
• static PlacementState GetPlacementState (string placementId)
Returns the state of specified placement.
• static void Show ()
Show the default placement if it is ready.
• static void Show (ShowOptions showOptions)
Show the default placement if it is ready and returns the result in name="finishCallback".
• static void Show (string placementId)
Show the specified placement if it is ready.
• static void Show (string placementId, ShowOptions showOptions)
Show the specified placement if it is ready and returns the result in name="finishCallback".
• static void SetMetaData (MetaData metaData)
Sets various metadata for the advertisement system.
Properties
• static bool isInitialized [get]
Returns whether the advertisement system is initialized successfully.
• static bool isSupported [get]
Returns if the current platform is supported by the advertisement system.
• static bool debugMode [get, set]
Controls the amount of logging output from the advertisement system.
• static string version [get]
Returns the current Unity Ads version.
• static bool isShowing [get]
Returns if an advertisement is currently showing.
2.1.1 Detailed Description
Unity Ads Asset Store Package
Generated on Wed Jul 6 2016 15:00:31 for UnityAds by Doxygen