The following sections show you how to load and then show and hide a banner or MREC ad.
Loading a Banner or MREC
To load a banner or MREC, call CreateBanner()
or CreateMRec()
, passing it your Ad Unit ID and desired ad view position:
Banners
MRECs
The complete list of position options are:
TopLeft
TopCenter
TopRight
Centered
CenterLeft
CenterRight
BottomLeft
BottomCenter
BottomRight
Set your banner background color to any FColor
, for example FColor:Black
or FColor:FromHex("#fff200")
(yellow).
Showing a Banner or MREC
Show a banner or MREC with the following call:
Hiding a Banner or MREC
Hide a banner or MREC with the following call: