mobileAdGetTopLeft

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
mobileAdGetTopLeft (<adName>)
Associationsstack
Summary

Returns the topLeft position of an ad.

Introduced5.5
OSios, android
Platformsmobile
Parameters
NameTypeDescription
adName

The name of ad (as specified in mobileAdCreate).

Example
put mobileAdGetTopLeft("my ad") into tTopLeft
Values
NameTypeDescription
return

Returns the topLeft position of an ad. This is 2 comma separated values giving the left and top coordinates of the ad relative to the topLeft corner of the stack, which is 0,0. Returns "ad not found" if the ad does not exist.

The result

Before calling this function you must have registered your 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, mobileAdSetTopLeft, mobileAdRegister
Function: mobileAdGetVisible
Description

Use the mobileAdGetTopLeft function to retrieve the top left postition of an ad.

The mobileGetTopLeft function returns the topLeft position of an ad.