Skip to main content

mobileAdSetVisible

Type​

command

Summary​

Specifies whether an ad can be seen or is hidden.

Syntax​

mobileAdSetVisible <ad>, <visible>

Description​

Use the mobileAdSetVisible command to set the visibility of an ad created using the mobileAdCreate command.

Parameters​

NameTypeDescription

ad

The name of the ad.

visible

boolean

True to set the ad to visible, false to make the ad invisible.

Examples​

-- Show banner advert
mobileAdSetVisible "bannerAd", true
if mobileAdGetVisible("bannerAd") is true then
mobileAdSetVisible "bannerAd", false
end if

message: adLoaded, adLoadFailed, adClicked

command: mobileAdCreate, mobileAdRegister, mobileAdSetTopLeft

function: mobileAdGetTopLeft, mobileAdGetVisible, mobileAds

Compatibility and Support​

Introduced

LiveCode 5.5

OS

ios

android

Platforms

mobile

Thank you for your feedback!

Was this page helpful?