namespace Unity.Services.Mediation
{
///
/// The current state of an Interstitial or rewarded Ad.
/// The current state of an Ad load or show.
///
/// Unloaded: Indicates that an ad unit is ready to be loaded. AdUnits that are Unloaded cannot
/// be showed.
///
/// Set when Ad is instanced, Ad has closed or failed on show, Ad has failed to Load.
///
/// Loading: Indicates that an ad unit is in the process of loading ad data. AdUnits that
/// are Loading cannot be loaded again until a subsequent load has failed or
/// show has completed/failed.
///
/// Set when Ad load is called.
///
/// Loaded: Indicates that an ad unit has loaded ad data and is ready to show. AdUnits that
/// are Loaded cannot be loaded again until a subsequent show has completed/failed.
///
/// Set when a line item has loaded (Ad load has succeeded).
///
/// Showing: Indicates that an ad unit is in the process of showing. AdUnits that are Showing
/// cannot be loaded or showed again until playback has completed/failed.
///
/// Set when Ad show is called.
///
/// Potential State Transitions:
/// Unloaded to Loading to Loaded to Showing to Unloaded
/// Unloaded to Loading to Unloaded
///
public enum AdState
{
///
/// Indicates that an ad unit is ready to be loaded. AdUnits that are Unloaded cannot
/// be showed.
///
Unloaded,
///
/// Indicates that an ad unit is in the process of loading ad data. AdUnits that
/// are Loading cannot be loaded again until a subsequent load has failed or
/// show has completed/failed.
///
Loading,
///
/// Indicates that an ad unit has loaded ad data and is ready to show. AdUnits that
/// are Loaded cannot be loaded again until a subsequent show has completed/failed.
///
Loaded,
///
/// Indicates that an ad unit is in the process of showing. AdUnits that are Showing
/// cannot be loaded or showed again until playback has completed/failed.
///
Showing
}
}