Mediation 5.4.0 - Unity C# API Reference Mediation 5.4.0 - Unity C# API Reference
Mediation 5.4.0 - Unity C# API Reference Mediation 5.4.0 - Unity C# API Reference
© 2025 Chartboost, Inc. All rights reserved.

Class BannerAdDefault

Default implementation of IBannerAd for any unsupported platforms.

Inheritance
object
BannerAdBase
BannerAdDefault
Implements
IBannerAd
IAd
IDisposable
Inherited Members
BannerAdBase.BannerAd
BannerAdBase.IsDisposed
BannerAdBase.UniqueId
BannerAdBase._request
BannerAdBase.Reset()
BannerAdBase.Dispose()
BannerAdBase.WillAppear
BannerAdBase.DidClick
BannerAdBase.DidRecordImpression
BannerAdBase.DidBeginDrag
BannerAdBase.DidDrag
BannerAdBase.DidEndDrag
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Chartboost.Mediation.Default.Ad.Banner
Assembly: Chartboost.Mediation.dll
Syntax
public class BannerAdDefault : BannerAdBase, IBannerAd, IAd, IDisposable

Properties

BannerSize

Declaration
public override BannerSize? BannerSize { get; }
Property Value
Type Description
BannerSize?
Overrides
BannerAdBase.BannerSize

ContainerSize

Gets or sets the size of the container.

Declaration
public override ContainerSize ContainerSize { get; set; }
Property Value
Type Description
ContainerSize
Overrides
BannerAdBase.ContainerSize

Draggable

Gets or sets a value indicating whether this container can be dragged on the screen.

Declaration
public override bool Draggable { get; set; }
Property Value
Type Description
bool
Overrides
BannerAdBase.Draggable

HorizontalAlignment

The horizontal alignment of the ad within its container.

Declaration
public override BannerHorizontalAlignment HorizontalAlignment { get; set; }
Property Value
Type Description
BannerHorizontalAlignment
Overrides
BannerAdBase.HorizontalAlignment

Keywords

The keywords targeted for the ad.

Declaration
public override IReadOnlyDictionary<string, string> Keywords { get; set; }
Property Value
Type Description
IReadOnlyDictionary<string, string>
Overrides
BannerAdBase.Keywords

LoadId

The identifier for this load call. Note that this will change with auto-refresh and will be notified in WillAppear

Declaration
public override string LoadId { get; }
Property Value
Type Description
string
Overrides
BannerAdBase.LoadId

LoadMetrics

The load metrics for the most recent successful load operation, or Null if a banner is not loaded. If auto-refresh is enabled, this value will change over time. The WillAppear event will be called after this value changes.

Declaration
public override Metrics? LoadMetrics { get; }
Property Value
Type Description
Metrics?
Overrides
BannerAdBase.LoadMetrics

PartnerSettings

Optional partner-specific settings that can be associated with the advertisement placement.

Declaration
public override IReadOnlyDictionary<string, string> PartnerSettings { get; set; }
Property Value
Type Description
IReadOnlyDictionary<string, string>
Overrides
BannerAdBase.PartnerSettings

Pivot

Gets or sets the Pivot property, which defines the normalized pivot point of this container within the screen coordinate system from which all transformations and layout computations, such as width and height, are based. This property functions similarly to the pivot in Unity's RectTransform

  • X-Axis: Horizontal position within the container, normalized to the container's width. A value of 0 aligns the pivot with the left edge, while a value of 1 aligns with the right edge.
  • Y-Axis: Vertical position within the container, normalized to the container's height. A value of 0 aligns the pivot with the top edge, while a value of 1 aligns with the bottom edge. Examples:
  • (0, 0): Pivot at the top-left corner of the container.
  • (0.5, 0.5): Pivot at the center of the container.
  • (1, 1): Pivot at the bottom-right corner of the container.
Declaration
public override Vector2 Pivot { get; set; }
Property Value
Type Description
Vector2
Overrides
BannerAdBase.Pivot

Position

The position of the Pivot of this container on the screen in the Screen Coordinate System. X-Axis: The horizontal axis, with positive values increasing to the right. Y-Axis: The vertical axis, with positive values increasing downward.

Declaration
public override Vector2 Position { get; set; }
Property Value
Type Description
Vector2
Overrides
BannerAdBase.Position

Request

The publisher supplied request that was used to load the ad.

Declaration
public override BannerAdLoadRequest Request { get; }
Property Value
Type Description
BannerAdLoadRequest
Overrides
BannerAdBase.Request

VerticalAlignment

The vertical alignment of the ad within its container.

Declaration
public override BannerVerticalAlignment VerticalAlignment { get; set; }
Property Value
Type Description
BannerVerticalAlignment
Overrides
BannerAdBase.VerticalAlignment

Visible

Gets or sets a value indicating the visibility of the container.

Declaration
public override bool Visible { get; set; }
Property Value
Type Description
bool
Overrides
BannerAdBase.Visible

WinningBidInfo

The winning bid info for the ad. Note that this will change with auto-refresh and will be notified in WillAppear

Declaration
public override BidInfo? WinningBidInfo { get; }
Property Value
Type Description
BidInfo?
Overrides
BannerAdBase.WinningBidInfo

Methods

Dispose(bool)

Declaration
protected override void Dispose(bool disposing)
Parameters
Type Name Description
bool disposing
Overrides
BannerAdBase.Dispose(bool)

Load(BannerAdLoadRequest)

Loads an ad.

Declaration
public override Task<BannerAdLoadResult> Load(BannerAdLoadRequest request)
Parameters
Type Name Description
BannerAdLoadRequest request

The ChartboostMediationBannerAdLoadRequest request

Returns
Type Description
Task<BannerAdLoadResult>
Overrides
BannerAdBase.Load(BannerAdLoadRequest)

Implements

IBannerAd
IAd
IDisposable