Banner and MREC ads are rectangular ad formats that occupy part of an app’s layout—often at the top or bottom of the screen or inline in scrollable content. They remain visible as users interact with the app, which allows uninterrupted gameplay or use, and can refresh automatically after a set period.
The following sections show you how to load, show, and hide a banner or MREC ad.
To load a banner or MREC, call CreateBanner() or CreateMRec(), passing it your Ad Unit ID and desired ad view position:


The complete list of position options are:
TopLeftTopCenterTopRightCenteredCenterLeftCenterRightBottomLeftBottomCenterBottomRightSet your banner background color to any FColor, for example FColor::Black or FColor::FromHex("#fff200") (yellow).
Show a banner or MREC with the following call:


Hide a banner or MREC with the following call:


“Why mobile banners ads persist in a video and playable world” from AppLovin’s Blog.