Hi,
I’m using the following admob extention:
https://github.com/Lerg/extension-admob/archive/legacy.zip
I have the following code:
local m_app = require('modules/app')
function init(self)
local function listener(event)
if event.phase == 'init' then
admob.load
{
type = 'interstitial',
id = 'ca-app-pub-1234567890/1234567890',
immersive = true,
}
end
end
admob.init
{
test = true,
listener = listener
}
end
function on_message(self, message_id, message, sender)
if message_id == m_app.MESSAGE_ADMOB_SHOW then
admob.show('interstitial')
print('show')
end
end
I have also set the android_app_id in the game.project and and when I bundle for Android I only get the print when I try to show an ad.