mobileAdSetVisible

Typecommand
DictionaryLCS
LibraryLiveCode Script
Syntax
mobileAdSetVisible <ad>, <visible>
Associationsstack
Summary

Specifies whether an ad can be seen or is hidden.

Introduced5.5
OSios, android
Platformsmobile
Parameters
NameTypeDescription
ad

The name of the ad.

visible

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

Example
-- Show banner advert
mobileAdSetVisible "bannerAd", true
if mobileAdGetVisible("bannerAd") is true then
  mobileAdSetVisible "bannerAd", false
end if
RelatedCommand: mobileAdCreate, mobileAdRegister, mobileAdSetTopLeft
Function: mobileAdGetTopLeft, mobileAdGetVisible, mobileAds
Message: adLoaded, adLoadFailed, adClicked
Description

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