Ads:setPosition: Difference between revisions

From GiderosMobile
No edit summary
No edit summary
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__
__NOTOC__
'''<translate>Available since</translate>:''' Gideros 2014.01<br/>
'''Available since:''' Gideros 2014.01<br/>
=== <translate>Description</translate> ===
'''Class:''' [[Ads]]<br/>
<translate>Sets position of the ad in Gideros logical dimensions, taking into consideration applied automatic scaling</translate>
 
<source lang="lua">
=== Description ===
Ads:setPosition(x,y)
Sets position of the ad in Gideros logical dimensions, taking into consideration applied automatic scaling.
</source>
<syntaxhighlight lang="lua">
=== <translate>Parameters</translate> ===
Ads:setPosition(x,y)
'''x''': (number) <translate>x position to set</translate> <br/>
</syntaxhighlight>
'''y''': (number) <translate>y position to set</translate> <br/>
 
*'''AdColony''': does nothing
*'''Admob''': banners only
*'''Amazon''': banners only
*'''AppLovin''': banners only
*'''Chartboost''': does nothing
*'''HeyZap''': does nothing
*'''iAds''': banners only
*'''InMobi''': banners only
*'''Millenial''': banners only
*'''MoPub''': banners sizes are reported only after ad is received
*'''Revmob''': banners may report height as 0
*'''Samsung AdHub''': banners only
*'''TapForTap''': banners only
*'''TapJoy''': banners only
*'''Unity''': does nothing
*'''Vungle''': does nothing
 
=== Parameters ===
'''x''': (number) x position to set<br/>
'''y''': (number) y position to set<br/>
 
{{Ads}}

Latest revision as of 01:55, 16 February 2025

Available since: Gideros 2014.01
Class: Ads

Description

Sets position of the ad in Gideros logical dimensions, taking into consideration applied automatic scaling.

Ads:setPosition(x,y)
  • AdColony: does nothing
  • Admob: banners only
  • Amazon: banners only
  • AppLovin: banners only
  • Chartboost: does nothing
  • HeyZap: does nothing
  • iAds: banners only
  • InMobi: banners only
  • Millenial: banners only
  • MoPub: banners sizes are reported only after ad is received
  • Revmob: banners may report height as 0
  • Samsung AdHub: banners only
  • TapForTap: banners only
  • TapJoy: banners only
  • Unity: does nothing
  • Vungle: does nothing

Parameters

x: (number) x position to set
y: (number) y position to set