Deutsches LiveCode Wiki
Advertisement

Returns the topLeft position of an ad.Syntax:

mobileAdGetTopLeft (<adName>)

Examples:

put mobileAdGetTopLeft("my ad") into tTopLeft

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

The mobileGetTopLeft function returns the topLeft position of an ad.

Parameters:

  • adName: The name of ad (as specified in mobileAdCreate).
  • Returns: Returns the topLeft position of an ad. This is 2 comma separated valuesgiving the left and top coordinates of the ad relative to the topLeftcorner of the stack, which is 0,0. Returns "ad not found" if the ad doesnot exist.
  • The result: Before calling this function you must have registered your app's idusing mobileAdRegister. If not, the result will contain"not registered with service".

See also: mobileAdSetVisible (command),mobileAdSetTopLeft (command),mobileAdRegister (command),mobileAdGetVisible (function),adLoaded (message),adLoadFailed (message),adClicked (message),topLeft (property),

Advertisement