mobileAdSetTopLeft

Typecommand
DictionaryLCS
LibraryLiveCode Script
Syntax
mobileAdSetTopLeft <adName>, <topLeft>
Associationsstack
Summary

Sets the topLeft position of an ad.

Introduced5.5
OSios, android
Platformsmobile
Parameters
NameTypeDescription
adName

The name of ad (as specified in mobileAdCreate).

topLeft

The coordinates at which the top left corner of the add should be placed. Use parentheses to pass 2 comma separated values as a single parameter.

Example
mobileAdSetTopLeft "my ad", (10,150) -- the brackets here are to make sure the top left is passed as a single parameter
Values
NameTypeDescription
The result

If the ad does not exist the result will contain "ad not found". Before calling this command, you must have registered you app's id using mobileAdRegister. If not, the result will contain "not registered with service".

RelatedProperty: topLeft
Message: adLoaded, adLoadFailed, adClicked
Command: mobileAdCreate, mobileAdDelete, mobileAdSetVisible, mobileAdRegister
Function: mobileAdGetTopLeft, mobileAdGetVisible
Description

Use the mobileAdSetTopLeft command to set the top left postition of an ad.

The mobileAdSetTopLeft command places the named ad with its top left corner at the specified point.