In my app, text will be visible for approx. 10 seconds then it will change. Along with the text, a banner ad will also be shown in the bottom of the screen. When the text is changed, if I make a banner ad load again, will it be counted as another adview ?
I am not changing scenes, but changing the text shown, and loading a banner ad again in the same scene.
Like
myText.text = “updated text”
local
admob =
require
(
"plugin.admob"
)
– doing it again
-- AdMob listener function
local
function
adListener( event )
if
( event.phase ==
"init"
)
then
-- Successful initialization
-- Load an AdMob banner ad
admob.
load
(
"banner"
, { adUnitId=
"YOUR_ADMOB_AD_UNIT_ID"
} )
end
end
-- Initialize the AdMob plugin
admob.init( adListener, { appId=
"YOUR_ADMOB_APP_ID"
} )
-- Sometime later, show the bannerl ad
if
( admob.isLoaded(
"banner"
) )
then
admob.show(
"banner"
)
end
Thanks a ton!