How can i handle clicking on the banner? The problem is that I’m showing a banner in the gameplay. So I want to pause game while user clicking on the baner.
Anybody help?
Thanks.
How can i handle clicking on the banner? The problem is that I’m showing a banner in the gameplay. So I want to pause game while user clicking on the baner.
Anybody help?
Thanks.
Hi brent:
I’m using Admod, iad, inneractive. Can i handle this by lua?
Thanks.
Hello,
These networks don’t have a Lua event for when the banner is tapped. InMobi (enhanced version) does, however. In any case, if you wish to use the 3 providers you listed, a Runtime system event listener may do what you need, depending on what happens from the provider when the ad is clicked. In other words, you could detect an “applicationSuspend” event and, if the ad leaves the app, then Corona should receive this event and you could use it to pause the game.
This being said, if you’re designing an action-based game, it’s strongly discouraged that you show ads during gameplay. Users will almost never click on these, thus defeating the purpose of the ad and reducing the chances of a click-through.
Take care,
Brent
Hi,
Thanks for your quickly respond.
Hi brent:
I’m using Admod, iad, inneractive. Can i handle this by lua?
Thanks.
Hello,
These networks don’t have a Lua event for when the banner is tapped. InMobi (enhanced version) does, however. In any case, if you wish to use the 3 providers you listed, a Runtime system event listener may do what you need, depending on what happens from the provider when the ad is clicked. In other words, you could detect an “applicationSuspend” event and, if the ad leaves the app, then Corona should receive this event and you could use it to pause the game.
This being said, if you’re designing an action-based game, it’s strongly discouraged that you show ads during gameplay. Users will almost never click on these, thus defeating the purpose of the ad and reducing the chances of a click-through.
Take care,
Brent
Hi,
Thanks for your quickly respond.