Is it possible to the app know when the user click an (Admob) ad?
local ads = require “ads”
local function adListener( event )
if event.isError then
– Failed to receive an ad.
end
end
ads.init( “admob”, “myAppId”, adListener )
ads.show( “banner”, { x=0, y=0 } )
When an ad is received from server the adListener function is called.
And is it called even when the user click the ad or not?
If yes, what I need to write in the function (what is the condition)?
I’m just testing and I want that the app presents a text containing the number of times the user clicked an ad.
If it’s not the function adListener that is called, it is another function or no function is called at all?
Thanks