Skip to content

Class · inherits SurfaceGuiBase

AdGui

Official docs ↗

A surface-based GUI that displays immersive ads on a face of a Part in the 3D world.

About AdGui

AdGui is a SurfaceGuiBase that renders immersive display ads onto a face of the Part it's adorned to. When no ad is available, it shows the creator-supplied AdGui.FallbackImage, or a default Roblox fallback image when that property is empty.

To render ads, the AdGui must be adorned to a block Part that's a descendant of Workspace, must be the only surface GUI on that face, and must be at least the minimum eligible size. When these conditions aren't met, the object displays a placeholder image in Studio's edit view and renders nothing in a running experience.

Properties 5

  • AdShape: AdShapeDetermines the shape of the ad displayed by the AdGui.

    Determines the shape of the ad rendered by the AdGui, including the creative's aspect ratio on the part surface. Defaults to HorizontalRectangle, which is the only served shape aside from the sentinel Undefined.

  • EnableVideoAds: booleanEnables the AdGui to serve video ads.

    The property enables the AdGui to serve video ads.

  • FallbackImage: ContentIdThe image the AdGui displays when no ad is available to serve.

    A creator-supplied image that the AdGui displays when it has no served ad to render. Defaults to an empty content string; while empty, the AdGui renders a default Roblox fallback image instead.

  • FallbackImageContent: ContentThe Content equivalent of AdGui.FallbackImage that supports asset URIs and EditableImage objects.

    A Content-typed property that holds the fallback image the AdGui displays when no served ad is available. It is the content-typed backing for AdGui.FallbackImage (a legacy TextureId string); writing to either property updates the same underlying storage. Unlike FallbackImage, this property accepts asset URIs and references to EditableImage objects. When empty, the AdGui renders a default Roblox fallback image instead.

  • Status: AdUnitStatusReadOnlyNotReplicatedIndicates whether the AdGui is currently displaying a served ad.

    A read-only property that reports whether the AdGui is actively displaying a served ad. It's Active when the AdGui is rendering ad content, and Inactive otherwise.

AdGui also has every member of SurfaceGuiBase. Deprecated and Roblox-only members are hidden.

Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.