Class · inherits SurfaceGuiBase
AdGui
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 theAdGui.Determines the shape of the ad rendered by the
AdGui, including the creative's aspect ratio on the part surface. Defaults toHorizontalRectangle, which is the only served shape aside from the sentinelUndefined.EnableVideoAds
: booleanEnables the AdGui to serve video ads.The property enables the AdGui to serve video ads.
FallbackImageContent
: ContentTheContentequivalent ofAdGui.FallbackImagethat supports asset URIs andEditableImageobjects.A
Content-typed property that holds the fallback image theAdGuidisplays when no served ad is available. It is the content-typed backing forAdGui.FallbackImage(a legacyTextureIdstring); writing to either property updates the same underlying storage. UnlikeFallbackImage, this property accepts asset URIs and references toEditableImageobjects. When empty, theAdGuirenders a default Roblox fallback image instead.
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.