Difference between revisions of "Event.AD RECEIVED"
From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2014.01<br/> === Description === Ad was received") |
|||
| (10 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
'''Available since:''' Gideros 2014.01<br/> | '''Available since:''' Gideros 2014.01<br/> | ||
| + | '''Value:''' adReceived<br/> | ||
| + | '''Defined by:''' [[Ads]]<br/> | ||
| + | |||
=== Description === | === Description === | ||
| − | Ad was received | + | Ad was received. |
| + | |||
| + | *'''AdColony''': when video started | ||
| + | *'''Admob''': when ad received | ||
| + | *'''Amazon''': when ad loaded | ||
| + | *'''AppLovin''': when ad received | ||
| + | *'''Chartboost''': when ad is displayed | ||
| + | *'''HeyZap''': when ad is displayed | ||
| + | *'''iAds''': when ad is displayed | ||
| + | *'''InMobi''': when ad showed | ||
| + | *'''Millenial''': when ad received | ||
| + | *'''MoPub''': ad is received | ||
| + | *'''Revmob''': when ad received | ||
| + | *'''Samsung AdHub''': when ad is displayed | ||
| + | *'''TapForTap''': when ad is received | ||
| + | *'''TapJoy''': when ad received | ||
| + | *'''Unity''': when ad received | ||
| + | *'''Vungle''': when video started | ||
| + | |||
| + | === Events === | ||
| + | '''type''': (string) the ad type<br/> | ||
| + | |||
| + | === Example === | ||
| + | <syntaxhighlight lang="lua"> | ||
| + | admob:addEventListener(Event.AD_RECEIVED, function(e) -- show ad | ||
| + | print("AD_RECEIVED") | ||
| + | print(e.type) -- string | ||
| + | admob:showAd("auto") | ||
| + | admob:setAlignment("left", "top") | ||
| + | end) | ||
| + | </syntaxhighlight> | ||
| + | |||
| + | {{Ads}} | ||
Latest revision as of 03:01, 16 February 2025
Available since: Gideros 2014.01
Value: adReceived
Defined by: Ads
Description
Ad was received.
- AdColony: when video started
- Admob: when ad received
- Amazon: when ad loaded
- AppLovin: when ad received
- Chartboost: when ad is displayed
- HeyZap: when ad is displayed
- iAds: when ad is displayed
- InMobi: when ad showed
- Millenial: when ad received
- MoPub: ad is received
- Revmob: when ad received
- Samsung AdHub: when ad is displayed
- TapForTap: when ad is received
- TapJoy: when ad received
- Unity: when ad received
- Vungle: when video started
Events
type: (string) the ad type
Example
admob:addEventListener(Event.AD_RECEIVED, function(e) -- show ad
print("AD_RECEIVED")
print(e.type) -- string
admob:showAd("auto")
admob:setAlignment("left", "top")
end)