Difference between revisions of "Event.AD RECEIVED"
From GiderosMobile
| Line 6: | Line 6: | ||
| === Description === | === Description === | ||
| Ad was received. | Ad was received. | ||
| + | |||
| + | === Example === | ||
| + | <syntaxhighlight lang="lua"> | ||
| + | admob:addEventListener(Event.AD_RECEIVED, function(e) -- show ad | ||
| + | 	print("AD_RECEIVED") | ||
| + | 	print(e.type) -- ok | ||
| + | 	admob:showAd("auto") | ||
| + | 	admob:setAlignment("left", "top") | ||
| + | end) | ||
| + | </syntaxhighlight> | ||
| {{Ads}} | {{Ads}} | ||
Revision as of 20:32, 15 February 2025
Available since: Gideros 2014.01
Value: adReceived
Defined by: Ads
Description
Ad was received.
Example
admob:addEventListener(Event.AD_RECEIVED, function(e) -- show ad
	print("AD_RECEIVED")
	print(e.type) -- ok
	admob:showAd("auto")
	admob:setAlignment("left", "top")
end)
